/* EVV Faith site-wide visual system — editorial Bible library, not lifestyle beige. */
:root {
  --evv-night: #18252a;
  --evv-ink: #1f2d31;
  --evv-slate: #536266;
  --evv-mist: #e9efed;
  --evv-paper: #f8faf9;
  --evv-white: #ffffff;
  --evv-line: #bcc9c5;
  --evv-brass: #a7833b;
  --evv-burgundy: #7b3f39;
}

html { background: var(--evv-night); }
body { background: var(--evv-mist) !important; color: var(--evv-ink); }

/* Shared navigation and footer */
.evv-top-site-nav,
.evv-site-header,
body:not(.evv-books-active) .wp-site-blocks > header {
  background: var(--evv-night) !important;
  border-color: var(--evv-brass) !important;
  color: #fff !important;
}
.evv-top-site-nav a,
.evv-site-header a,
body:not(.evv-books-active) .wp-site-blocks > header a { color: #fff !important; }
.evv-top-brand small { color: #d9c58f !important; }
.evv-site-footer,
.evv-footer { background: var(--evv-night) !important; }

/* Homepage and teaching library */
body.home,
.evv-library-wrapper { background: var(--evv-mist) !important; }
.home .evv-home-hero {
  background: var(--evv-night) !important;
  border-color: var(--evv-brass) !important;
}
.home .evv-home-hero h1,
.home .evv-home-hero h2,
.home .evv-home-hero p { color: #fff !important; }
.evv-books-promo {
  background: #223238 !important;
  border: 1px solid #61706d !important;
  border-radius: 0 !important;
}
.evv-books-promo::after { background: var(--evv-brass) !important; }
.evv-library-sidebar,
.evv-search-panel,
.evv-library-search-panel,
.evv-card {
  background: var(--evv-white) !important;
  border-color: var(--evv-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.evv-card-type-badge,
.evv-read-more,
.evv-library-search-btn {
  border-radius: 0 !important;
}
.evv-library-kicker { color: #785f27 !important; }

/* About and policy pages */
.evv-about-page,
.evv-policy-page { background: var(--evv-mist) !important; }
body.evv-takeover-active .evv-about-page .evv-about-hero {
  background: var(--evv-night) !important;
  border: 1px solid #60706c !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.evv-takeover-active .evv-about-page .evv-about-hero h1,
body.evv-takeover-active .evv-about-page .evv-about-hero h2,
body.evv-takeover-active .evv-about-page .evv-about-hero p { color: #fff !important; }
body.evv-takeover-active .evv-about-page .evv-about-hero .evv-library-kicker {
  color: #d8bd78 !important;
}
body.evv-takeover-active .evv-policy-page .evv-policy-hero {
  background: var(--evv-white) !important;
  border: 1px solid var(--evv-line) !important;
  border-left: 5px solid var(--evv-brass) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--evv-ink) !important;
  padding: clamp(2rem, 5vw, 4rem) !important;
}
body.evv-takeover-active .evv-policy-page .evv-policy-hero h1,
body.evv-takeover-active .evv-policy-page .evv-policy-hero h2 {
  color: var(--evv-ink) !important;
}
body.evv-takeover-active .evv-policy-page .evv-policy-hero p:not(.evv-library-kicker) {
  color: var(--evv-slate) !important;
}
body.evv-takeover-active .evv-policy-page .evv-policy-hero .evv-library-kicker {
  color: #785f27 !important;
}
body.evv-takeover-active .evv-about-page .evv-about-sidebar,
body.evv-takeover-active .evv-about-page .evv-about-content,
body.evv-takeover-active .evv-policy-page .evv-policy-sidebar,
body.evv-takeover-active .evv-policy-page .evv-policy-content {
  background: var(--evv-white) !important;
  border-color: var(--evv-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.evv-takeover-active .evv-about-page .evv-about-sidebar,
body.evv-takeover-active .evv-policy-page .evv-policy-sidebar { border-left: 4px solid var(--evv-brass) !important; }
.evv-about-content h3,
.evv-policy-content h3 { border-left-color: var(--evv-brass) !important; }
.evv-about-content .pe-mode-timothy,
.evv-about-content .pe-mode-titus {
  background: #f1f5f3 !important;
  border-color: var(--evv-line) !important;
  border-left-color: var(--evv-brass) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Contact page and standard WordPress pages */
body:not(.home):not(.evv-books-active) .wp-site-blocks,
body:not(.home):not(.evv-books-active) .wp-site-blocks > main {
  background: var(--evv-mist) !important;
}
body.page-id-2 .evv-contact-hub,
body.page-id-2 .evv-contact-shell {
  background: transparent !important;
  border-radius: 0 !important;
}
body.page-id-2 .evv-contact-shell .evv-contact-hero {
  background: var(--evv-night) !important;
  border-color: #60706c !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.page-id-2 .evv-contact-shell .evv-contact-hero h1,
body.page-id-2 .evv-contact-shell .evv-contact-hero h2,
body.page-id-2 .evv-contact-shell .evv-contact-hero p { color: #fff !important; }
body.page-id-2 .evv-contact-shell .evv-contact-side-card,
body.page-id-2 .evv-contact-shell .evv-contact-form-card {
  background: var(--evv-white) !important;
  border-color: var(--evv-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.page-id-2 .evv-contact-shell .evv-contact-side-dark {
  background: #26373c !important;
  color: #fff !important;
}
body.page-id-2 .evv-contact-form-card input,
body.page-id-2 .evv-contact-form-card select,
body.page-id-2 .evv-contact-form-card textarea {
  border-radius: 0 !important;
  border-color: #9baaa6 !important;
  background: #fbfcfc !important;
}
body.page-id-2 .evv-contact-form-card .wpcf7 input[type="text"],
body.page-id-2 .evv-contact-form-card .wpcf7 input[type="email"],
body.page-id-2 .evv-contact-form-card .wpcf7 input[type="url"],
body.page-id-2 .evv-contact-form-card .wpcf7 input[type="tel"],
body.page-id-2 .evv-contact-form-card .wpcf7 select,
body.page-id-2 .evv-contact-form-card .wpcf7 textarea {
  border-radius: 0 !important;
}
body.page-id-2 .evv-contact-form-card input[type="submit"] {
  border-radius: 0 !important;
  background: var(--evv-night) !important;
  color: #fff !important;
}

/* Recipe archive and recipe details: remove the remaining lifestyle-beige treatment. */
body.page-id-5307 .family-intro {
  background: var(--evv-white) !important;
  border: 1px solid var(--evv-line) !important;
  border-left: 5px solid var(--evv-brass) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.page-id-5307 .family-intro h2,
body.page-id-5307 .family-intro p { color: var(--evv-ink) !important; }
body.page-id-5307 .family-intro .eyebrow { color: #785f27 !important; }
body.page-child.parent-pageid-5307 .button {
  background: var(--evv-night) !important;
  border-color: var(--evv-night) !important;
  border-radius: 0 !important;
  color: #fff !important;
}
body.page-child.parent-pageid-5307 .button.secondary,
body.page-child.parent-pageid-5307 button.secondary {
  background: var(--evv-white) !important;
  border-color: var(--evv-line) !important;
  border-radius: 0 !important;
  color: var(--evv-ink) !important;
}

/* Keep the interface disciplined across archive and detail pages. */
.evv-content,
.evv-search-panel,
.evv-library-search-panel,
.evv-card,
.evv-contact-form-card,
.evv-contact-side-card { outline-color: var(--evv-line); }

@media (max-width: 700px) {
  .evv-books-promo,
  body.evv-takeover-active .evv-about-page .evv-about-hero,
  body.evv-takeover-active .evv-about-page .evv-about-sidebar,
  body.evv-takeover-active .evv-about-page .evv-about-content,
  body.page-id-2 .evv-contact-shell .evv-contact-hero,
  body.page-id-2 .evv-contact-shell .evv-contact-side-card,
  body.page-id-2 .evv-contact-shell .evv-contact-form-card { border-radius: 0 !important; }
}
