/* =========================================================
   REFORMED DOGMATIKA — ADDITIONAL CSS
   Original stylesheet maintained by Anthony Faggiano
   Syntax review and cleanup performed with Claude (Anthropic)
   on March 7, 2026. Multi-phase cleanup: duplicates removed,
   comment bloat removed, formatting normalized. No visual changes.
   =========================================================

   CHANGELOG — 4 surgical fixes applied. Fix 3 deliberately
   skipped. Zero visual changes intended or made.
   -------------------------------------------------------
   FIX 1: Removed invalid string  it"[bad string]
           (former line 836). Browsers ignored it; now clean.

   FIX 2: Removed orphaned declaration block (former lines
           837-848) that had no selector. Browsers ignored
           it entirely; removal has no visual effect.

   FIX 3: SKIPPED INTENTIONALLY. The unclosed legacy comment
           block (lines 701-704) is left exactly as-is.
           The browser's behavior with this block is part of
           what produces the correct sidebar widget appearance.
           Do not touch this block.

   FIX 4: Removed duplicate .rd-pubs base rule. The second,
           more complete definition ("Responsive Fix for
           Heidelblog Contributions Page") is authoritative
           and retained. The cascade was already resolving
           to that definition; no visual change.

   FIX 5: Removed dangling .blog a.more-link and
           .blog a.more-link:hover selectors that had no
           declaration block, causing .rd-toc__title to be
           absorbed into a broken selector chain. Both
           selectors remain properly defined earlier in the
           file with correct declaration blocks.
   -------------------------------------------------------
   All other rules, values, colors, and selectors are
   byte-for-byte identical to the source file.
   ========================================================= */


/* =========================================================
   RD S1: VARIABLES & BASE
   ========================================================*/
/* Variables */
:root {
  --rd-brand: #1B4E74;
  --rd-accent: #286292;
  --rd-visited: #24567f;
  --rd-tint: #E5EEF4;
  --rd-blue-dark: #163D5C;
  --rd-aqua: #B9DEE3;
  --rd-aqua-dark: #A7C6C8;
  --rd-link: #1B4E74;
  --rd-link-hover: #036bb3;
  --rd-sidebar-border: rgba(27,78,116,.35);
  --rd-sidebar-card: #ffffff;
  --rd-sidebar-shadow: 0 10px 26px rgba(0,0,0,.08);
  --rd-sidebar-radius: 16px;
  --rd-sidebar-pad: 16px;
  --rd-sidebar-gap: 12px;
  --rd-sidebar-title-font: "Merriweather", Georgia, serif;
  --rd-sidebar-body-font: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --rd-sidebar-title-size: 15.5px;
  --rd-sidebar-body-size: 13.7px;
  --rd-sidebar-line: 1.75;
  --rd-sidebar-brand: #1B4E74;
  --rd-sidebar-muted: #364151;
  --rd-sidebar-brand: #1B4E74;
  --rd-sidebar-muted: #364151;
}

/* Base / Body */
body { background-color: #ffffff !important; }

/* =========================================================
   RD S2: TYPOGRAPHY & CONTENT
   ========================================================= */

/* Entry Content Typography & Elements */
.entry-content {
  font-family: "Open Sans", sans-serif;
  font-size: 20px;
  line-height: 1.7;
  color: #222;
}
.entry-content p { margin-bottom: 1.2em; }
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: "Merriweather", serif;
  font-weight: 800;
  color: #111;
  margin-top: 2em;
  margin-bottom: .6em;
}

/* Images inside content */
.entry-content img {
  border: 1px solid #ddd;
  box-shadow: 2px 2px 5px rgba(0,0,0,.1);
  padding: 4px;
  background-color: #fff;
}

/* Responsive content type size */
@media only screen and (max-width: 768px) {
  .entry-content { font-size: 17px; line-height: 1.8; }
  .entry-content h2 { font-size: 22px; }
  .entry-content h3 { font-size: 20px; }
  .entry-content h4 { font-size: 18px; }
}

/* Author / Entry titles */
.entry-title,
.entry-title a { color: var(--rd-brand); }
.entry-title a:hover { color: var(--rd-blue-dark); }

  /* =========================================================
   RD S3 — LINKS & BUTTONS (GLOBAL-SAFE, FINAL)
   Depends on brand vars from S1 (:root)
   ========================================================= */

/* 3.1 Global anchor defaults (site-wide, gentle) */
a,
a:link {
  color: var(--rd-accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
  text-decoration-thickness: 1.5px;
}
a:visited { color: var(--rd-visited); }
a:hover,
a:focus { color: var(--rd-brand); }
a:focus {
  outline: 2px solid var(--rd-accent);
  outline-offset: 2px;
}

/* accessible, non-janky focus ring for article links */
.entry-content a:focus {
  outline: 2px solid var(--rd-accent) !important;
  outline-offset: 2px !important;
}

/* neutralize common wrapper classes/plugins that block-ify links */
.entry-content .stretched-link,
.entry-content .uagb-link-wrapper,
.entry-content .uagb-highlight,
.entry-content .link-underline,
.entry-content .rd-link,
.entry-content .rd-underline,
.entry-content p span,
.entry-content p em,
.entry-content p strong,
.entry-content p i,
.entry-content p b,
.entry-content p u {
  position: static !important;
  display: inline !important;
  width: auto !important;
  max-width: none !important;
}

/* paragraphs/lists should wrap normally */
.entry-content p,
.entry-content li { white-space: normal !important; }

/* 3.3 Buttons / Read-more (unified, doesn’t touch header/nav) */
button,
input[type="submit"],
.wp-block-button__link,
a.button,
a.more-link,
a.read-more,
.jetpack_subscription_widget input[type="submit"],
.search-submit,
.widget .wp-block-button__link {
  appearance: none;
  background: var(--rd-accent) !important;
  border-color: var(--rd-accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 18px !important;
  font: inherit;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background-color .2s ease-in-out, transform .15s ease !important;
}
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
a.button:hover,
a.more-link:hover,
a.read-more:hover,
.jetpack_subscription_widget input[type="submit"]:hover,
.search-submit:hover,
.widget .wp-block-button__link:hover {
  background: var(--rd-brand) !important;
  border-color: var(--rd-brand) !important;
  color: #fff !important;
}
a.more-link,
a.read-more { border-radius: 10px !important; }

/* 3.4 ESV Cross-ref link tweak */
.esv-crossref {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  color: var(--rd-accent);
  text-decoration: none;
  transition: color .3s ease, text-decoration .3s ease;
  font-size: 18px;
}
.esv-crossref:hover { text-decoration: underline; color: var(--rd-brand); }

/* 3.5 Optional: subtle hover lift for designated buttons */
a.button,
.naparc-button,
.widget_stats a { transition: transform .2s ease, box-shadow .2s ease; }
a.button:hover,
.naparc-button:hover,
.widget_stats a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6,147,227,.2);
}

/* 3.6 Utility: unstyled link helper for special cases */
.entry-content .link-reset {
  color: inherit !important;
  text-decoration: none !important;
}

/* === BODY LINKS: disable any stretched-link overlays in article text === */
.entry-content a,
.entry-content a:visited,
.entry-content a:hover,
.entry-content a:focus,
.entry-content a:active {
  display: inline !important;
  position: static !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  transition: none !important;
  animation: none !important;
  pointer-events: auto !important;      /* link remains clickable */
}

/* kill any pseudo-element overlay on links themselves */
.entry-content a::before,
.entry-content a::after {
  content: none !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  inset: auto !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  pointer-events: none !important;      /* overlay can’t catch the hover */
}

/* =========================================================
   RD S4: HEADER & NAV (ASTRA)
   ========================================================= */

/* Layout Nudges (Astra defaults) */
.ast-container > .ast-article-post:first-of-type { margin-top: -40px; }
.ast-page-builder-template .site-content > .ast-container { padding-top: 0 !important; }
.blog .ast-container .entry-header { margin-top: 0 !important; padding-top: 0 !important; }

/* Desktop typography + spacing */
@media (min-width: 922px) {
  .ast-desktop .ast-primary-header-bar .main-header-menu > li > a,
  .ast-desktop .ast-primary-header-bar .ast-builder-menu-1 .menu-link,
  .ast-desktop .ast-primary-header-bar .ast-builder-menu .menu-link {
    font-family: "Merriweather", serif !important;
    font-weight: 700;
    font-size: 21px;
    letter-spacing: .2px;
    line-height: 1.2;
  }
  .ast-desktop .main-header-menu > li > a { padding-left: 8px; padding-right: 8px; }
  .ast-desktop .main-header-menu > li { margin-right: 12px; }
  .ast-desktop .main-header-menu > li:last-child { margin-right: 0; }
  .ast-desktop .ast-primary-header-bar .ast-header-html-1,
  .ast-desktop .ast-primary-header-bar .ast-header-html-1 .ast-builder-html-element {
    margin-left: 8px !important; margin-right: 0 !important;
    white-space: nowrap; display: inline-flex; align-items: center; gap: 10px;
  }
}

/* Desktop menu colors */
.ast-desktop .main-header-menu > .menu-item > a {
  font-family: "Merriweather", serif;
  font-size: 18px; font-weight: 600; color: #FFFFFF !important; background: none;
  padding: 10px 12px; transition: color .3s ease, text-decoration .3s ease;
  text-decoration: none !important;
}

/* Hover/active color to match logo aqua */
@media (min-width: 922px) {
  .ast-primary-header-bar .main-header-menu .menu-item:hover > .menu-link,
  .ast-primary-header-bar .main-header-menu .menu-item > .menu-link:hover,
  .ast-primary-header-bar .ast-builder-menu-1 .menu-item:hover > .menu-link,
  .ast-primary-header-bar .ast-builder-menu-1 .menu-item > .menu-link:hover,
  .ast-primary-header-bar .main-header-menu .menu-link:focus,
  .ast-primary-header-bar .main-header-menu .current-menu-item > .menu-link,
  .ast-primary-header-bar .main-header-menu .current_page_item > .menu-link {
    color: var(--rd-aqua-dark) !important;
  }
}

/* Animated underline on desktop menu */
.main-header-menu a { position: relative; color: #fff; text-decoration: none; }
.main-header-menu a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px;
  background-color: var(--rd-aqua); transition: width .3s ease;
}
.main-header-menu a:hover { color: var(--rd-aqua); }
.main-header-menu a:hover::after { width: 100%; }

  /* Remove desktop underline animation inside mobile */
  body.ast-header-break-point .main-header-menu a::after {
    display: none !important;
  }

  /* Hover / focus states */
  body.ast-header-break-point .main-header-menu > li > a:hover,
  body.ast-header-break-point .main-header-menu > li > a:focus,
  body.ast-header-break-point .main-header-menu .menu-item > .menu-link:hover,
  body.ast-header-break-point .main-header-menu .menu-item > .menu-link:focus {
    background: #f3f7fa !important;
    border-color: rgba(27, 78, 116, 0.55) !important;
  }

  /* Ensure list items don't center */
  body.ast-header-break-point .main-header-menu > li {
    text-align: left !important;
  }

/* Tighten all menu item padding (DESKTOP ONLY) */
@media (min-width: 922px) {
  .main-header-menu > li > a { padding-left: 8px !important; padding-right: 8px !important; }
}

/* Below-header strip */
.ast-below-header {
  background-color: #f7f9fc;
  border-top: 1px solid #e1e4e8;
  border-bottom: 1px solid #e1e4e8;
  padding: 10px 0 12px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,.04);
}
.header-slogan {
  font-family: "Merriweather", serif;
  font-size: 17px; font-weight: 500; color: #2a2a2a; letter-spacing: .3px;
  max-width: 980px; margin: 0 auto; padding: 0 20px; line-height: 1.4;
}
.header-slogan:hover { color: #1c3f78; transition: color .3s ease; }

/* Breadcrumbs off (DEDUPED: appears again later) */
.ast-breadcrumbs { display: none; }

/* Header Search (mobile) */
@media (min-width: 922px) { .ast-header-search { display: none !important; } }
body.ast-header-break-point .ast-header-search .ast-icon svg[style*="stroke"],
body.ast-header-break-point .ast-header-search .ast-icon svg[style*="fill"] { filter: brightness(0) invert(1); }

@media (max-width: 921px) {
  .ast-header-break-point .main-header-bar { padding-top: 6px !important; padding-bottom: 6px !important; }
  .ast-header-break-point .ast-mobile-header-wrap .ast-builder-grid-row-container-inner { padding-top: 6px !important; padding-bottom: 6px !important; }
  .ast-header-break-point .ast-search-menu-icon,
  .ast-header-break-point.ast-theme-transparent-header .ast-search-menu-icon,
  .ast-header-break-point .ast-header-search .ast-search-menu-icon,
  .ast-header-break-point [data-section="section-header-search"] .ast-search-menu-icon {
    font-size: 28px !important; padding: 8px !important; line-height: 1 !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
  }
  .ast-header-break-point .ast-search-menu-icon svg,
  .ast-header-break-point .ast-search-menu-icon .ast-icon svg { width: 28px !important; height: 28px !important; }
  .ast-header-break-point .ast-search-menu-icon .ast-icon,
  .ast-header-break-point .ast-search-menu-icon .ast-icon:before { font-size: 28px !important; width: 28px !important; height: 28px !important; }
  .ast-header-break-point .ast-search-menu-icon > * { transform: scale(1.25) !important; transform-origin: center !important; display: inline-block !important; }
  .ast-header-search {
    display: inline-flex !important; align-items: center; margin: 0 8px; z-index: 5; transform: translateY(1px); padding-right: .8em;
  }
  body.ast-header-break-point .ast-header-search,
  body.ast-header-break-point .ast-header-search a,
  body.ast-header-break-point .ast-header-search button,
  body.ast-header-break-point .ast-header-search .ast-icon,
  body.ast-header-break-point .ast-header-search .ast-search-menu-icon {
    color: #ffffff !important; --ast-global-color-0: #ffffff; --ast-global-color-1: #ffffff; --ast-global-color-5: #ffffff;
  }
  .ast-header-search a,
  .ast-header-search button,
  .ast-header-search .ast-search-menu-icon {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    width: 44px !important; height: 44px !important; padding: 0 !important; border-radius: 9999px; background: transparent;
    transition: background .2s ease, transform .08s ease;
  }
  .ast-header-search a:hover,
  .ast-header-search button:hover,
  .ast-header-search .ast-search-menu-icon:hover { background: rgba(255,255,255,.08); }
  .ast-header-search a:hover svg,
  .ast-header-search button:hover svg,
  .ast-header-search .ast-search-menu-icon:hover svg { filter: drop-shadow(0 0 6px rgba(255,255,255,.55)); }
  .ast-header-search a:active svg,
  .ast-header-search button:active svg,
  .ast-header-search .ast-search-menu-icon:active svg { transform: scale(.92); }
  .ast-header-search a:focus-visible,
  .ast-header-search button:focus-visible,
  .ast-header-search .ast-search-menu-icon:focus-visible { outline: 2px solid #E6F4FD; outline-offset: 2px; }
}

/* Header images in menu (mobile utility) */
@media (max-width: 768px) { .main-header-menu img { width: 32px; height: 32px; } }

/* Header centering helpers */
.ast-primary-header-bar { display: flex; justify-content: center; align-items: center; }
.ast-primary-header-bar .ast-container { display: flex; justify-content: center; width: 100%; }
.ast-header-builtin { display: flex; justify-content: flex-start; align-items: center; gap: 3rem; max-width: 1200px; }

/* Prevent word splitting & control gap (DESKTOP ONLY) */
@media (min-width: 922px) {
  .main-header-menu,
  .main-header-menu .menu-item,
  .main-header-menu .menu-link { white-space: nowrap !important; word-break: normal !important; overflow-wrap: normal !important; hyphens: manual !important; }
}

@media (min-width: 922px) {
  .main-header-menu { display: flex; flex-wrap: nowrap; align-items: center; gap: 28px; }
}
.main-header-menu .menu-link { display: inline-block; line-height: 1.3; }

/* =========================================================
   RD S5: SIDEBAR & WIDGETS
   ========================================================= */
/* Widgets – Card style & animation */
.widget {
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 25px;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(6,147,227,.15);
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInWidget .6s ease forwards .3s;
}

@keyframes fadeInWidget {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Widget Titles – unified */
.widget-title,
.sidebar .widget-title,
.widget_block h2 {
  position: relative;
  background-color: var(--rd-tint) !important;
  color: var(--rd-brand) !important;
  padding: 8px 12px !important;
  border-radius: 6px 6px 0 0 !important;
  font-weight: 700 !important;
}
.widget-title::before,
.sidebar .widget-title::before,
.widget_block h2::before {
  content: "" !important;
  position: absolute !important;
  left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--rd-brand) !important;
  border-radius: 6px 0 0 0;
}

/* Sidebar links */
.sidebar a,
.widget a { color: var(--rd-accent); text-decoration: none; font-weight: 500; }
.sidebar a:hover,
.widget a:hover { color: var(--rd-brand); text-decoration: underline; }

/* Tag cloud chips */


/* Text widget blockquote */
.widget_text blockquote {
  font-style: italic;
  font-size: 15px;
  color: #333;
  margin: 0;
  padding-left: 10px;
  border-left: 3px solid #ccc;
}
.widget_text blockquote strong {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #111;
  font-weight: 700;
}

/* Custom widget button */
.naparc-button {
  display: inline-block;
  padding: 8px 14px;
  background-color: var(--rd-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color .3s ease, transform .2s ease, box-shadow .2s ease;
}
.naparc-button:hover {
  background-color: var(--rd-brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6,147,227,.2);
}

/* Stats widget */
.widget_stats {
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 25px;
  background-color: #fff;
  box-shadow: 0 3px 8px rgba(6,147,227,.15);
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}

/* Sidebar components (custom styled) */
.ast-sidebar-main .widget {
  background-color: #E8F1FA !important;
  padding: 15px; border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,.08); margin-bottom: 20px;
}
.ast-sidebar-main .widget-title,
.ast-sidebar-main .widget_block h2,
.widgettitle,
.widget_block h2 {
  background-color: var(--rd-brand) !important; color: #ffffff !important;
  padding: 8px 12px; border-radius: 8px 8px 0 0; font-weight: 600; margin: -15px -15px 15px -15px; border-left: none !important;
}
.ast-sidebar-main .more-link,
.ast-sidebar-main a.more-link,
.ast-sidebar-main .read-more,
.sidebar .more-link,
.sidebar .read-more { display: none !important; }
.widget_text p { font-size: 15px; color: #1F3A56; font-weight: 500; margin-top: 8px; }

.ast-sidebar .widget_categories .widget-title,
.sidebar-main .widget_categories .widget-title {
  display: inline-block; margin: 0 0 10px; padding: 4px 10px; font-family: "Merriweather", serif;
  font-weight: 700; font-size: 1.05rem; color: #1F3A56; background: #E8ECEF; border-radius: 999px; line-height: 1.2;
}
.ast-sidebar .widget_categories ul { list-style: none; margin: 0; padding: 0; }
.ast-sidebar .widget_categories li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; position: relative;
}
.ast-sidebar .widget_categories li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1F3A56; margin-right: 8px; flex: 0 0 8px;
}
.ast-sidebar .widget_categories a {
  flex: 1 1 auto; text-decoration: none; color: #1F3A56; font-weight: 600; transition: color .2s ease, transform .2s ease;
}
.ast-sidebar .widget_categories .count,
.ast-sidebar .widget_categories .post-count,
.ast-sidebar .widget_categories li > span {
  flex: 0 0 auto; font-size: .85rem; line-height: 1; padding: 4px 8px; border: 1px solid #1F3A56; border-radius: 999px; color: #1F3A56; background: #fff; opacity: .9;
}
.ast-sidebar .widget_categories li:hover { background: #F6F8FA; }
.ast-sidebar .widget_categories li:hover a { color: #14283B; transform: translateX(1px); }
.ast-sidebar .widget_categories a:focus { outline: 2px solid #1F3A56; outline-offset: 3px; border-radius: 6px; }
@media (max-width: 480px) {
  .ast-sidebar .widget_categories { padding: 12px 12px 8px; }
  .ast-sidebar .widget_categories li { padding: 7px 8px; }
}

/* Archives widget */
.ast-sidebar .widget_archive,
.sidebar-main .widget_archive {
  border: 2px solid #1F3A56; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,0.06); padding: 14px 16px 10px;
}
.ast-sidebar .widget_archive .widget-title,
.sidebar-main .widget_archive .widget-title {
  display: inline-block; margin: 0 0 10px; padding: 4px 10px; font-family: "Merriweather", serif; font-weight: 700;
  font-size: 1.05rem; color: #1F3A56; background: #E8ECEF; border-radius: 999px; line-height: 1.2;
}
.ast-sidebar .widget_archive ul { list-style: none; margin: 0; padding: 0; }
.ast-sidebar .widget_archive li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; position: relative;
}
.ast-sidebar .widget_archive li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1F3A56; margin-right: 8px; flex: 0 0 8px;
}
.ast-sidebar .widget_archive a {
  flex: 1 1 auto; text-decoration: none; color: #1F3A56; font-weight: 600; transition: color .2s ease, transform .2s ease;
}
.ast-sidebar .widget_archive li:hover { background: #F6F8FA; }
.ast-sidebar .widget_archive li:hover a { color: #14283B; transform: translateX(1px); }
.ast-sidebar .widget_archive a:focus { outline: 2px solid #1F3A56; outline-offset: 3px; border-radius: 6px; }
@media (max-width: 480px) {
  .ast-sidebar .widget_archive { padding: 12px 12px 8px; }
  .ast-sidebar .widget_archive li { padding: 7px 8px; }
}

/* Recent Posts widget */
.ast-sidebar .widget_recent_entries,
.sidebar-main .widget_recent_entries {
  border: 2px solid #1F3A56; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,0.06); padding: 14px 16px 10px;
}
.ast-sidebar .widget_recent_entries .widget-title,
.sidebar-main .widget_recent_entries .widget-title {
  display: inline-block; margin: 0 0 10px; padding: 4px 10px; font-family: "Merriweather", serif; font-weight: 700; font-size: 1.05rem; color: #1F3A56; background: #E8ECEF; border-radius: 999px;
}
.ast-sidebar .widget_recent_entries ul { list-style: none; margin: 0; padding: 0; }
.ast-sidebar .widget_recent_entries li {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; position: relative;
}
.ast-sidebar .widget_recent_entries li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1F3A56; position: absolute; left: -4px; top: 14px;
}
.ast-sidebar .widget_recent_entries a {
  text-decoration: none; color: #1F3A56; font-weight: 600; transition: color .2s ease, transform .2s ease;
}
.ast-sidebar .widget_recent_entries .post-date { font-size: .85rem; color: #555; }
.ast-sidebar .widget_recent_entries li:hover { background: #F6F8FA; }
.ast-sidebar .widget_recent_entries li:hover a { color: #14283B; transform: translateX(1px); }
.ast-sidebar .widget_recent_entries a:focus { outline: 2px solid #1F3A56; outline-offset: 3px; border-radius: 6px; }
@media (max-width: 480px) {
  .ast-sidebar .widget_recent_entries { padding: 12px 12px 8px; }
  .ast-sidebar .widget_recent_entries li { padding: 7px 8px; }
}

/* Quote of the Day – text widget variant */
.ast-sidebar .widget_text,
.sidebar-main .widget_text {
  border: 2px solid #1F3A56; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,0.06); padding: 18px 20px;
}
.ast-sidebar .widget_text .widget-title,
.sidebar-main .widget_text .widget-title {
  display: inline-block; margin: 0 0 12px; padding: 4px 12px; font-family: "Merriweather", serif; font-weight: 700; font-size: 1.05rem; color: #1F3A56; background: #E8ECEF; border-radius: 999px;
}
.ast-sidebar .widget_text blockquote,
.sidebar-main .widget_text blockquote {
  border-left: 4px solid #1F3A56; padding-left: 12px; margin: 0 0 10px; font-family: "Merriweather", serif; font-size: .95rem; color: #333; line-height: 1.5;
}
.ast-sidebar .widget_text .quote-author,
.sidebar-main .widget_text .quote-author {
  font-family: "Great Vibes", cursive; font-size: 1.1rem; color: #1F3A56; display: block; text-align: right; margin-top: 6px;
}

/* Tag Cloud – pill variant */
.ast-sidebar .widget_tag_cloud,
.sidebar-main .widget_tag_cloud {
  border: 2px solid #1F3A56; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,0.06); padding: 14px 16px 12px;
}
.ast-sidebar .widget_tag_cloud .widget-title,
.sidebar-main .widget_tag_cloud .widget-title {
  display: inline-block; margin: 0 0 10px; padding: 4px 12px; font-family: "Merriweather", serif; font-weight: 700; font-size: 1.05rem; color: #1F3A56; background: #E8ECEF; border-radius: 999px;
}
.ast-sidebar .widget_tag_cloud .tagcloud a {
  display: inline-block; background: #E8ECEF; color: #1F3A56; font-family: "Merriweather", serif; font-size: .85rem !important; font-weight: 500;
  padding: 5px 10px; margin: 4px 4px 0 0; border-radius: 999px; text-decoration: none; transition: background .2s ease, color .2s ease, transform .2s ease;
}
.ast-sidebar .widget_tag_cloud .tagcloud a:hover { background: #1F3A56; color: #fff; transform: scale(1.08); }

/* Slogan widget */
.rd-slogan-widget {
  border: 2px solid #1F3A56; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,0.06); padding: 16px 14px; text-align: center;
}
.rd-slogan-widget img {
  max-width: 100%; height: auto; border-radius: 8px; margin-bottom: .5em; border: 4px solid #1F3A56; background-color: #fff; padding: 5px; box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}


/* =========================================================
   LEGACY / DISABLED BLOCK (archived; kept for reference only)
   NOTE: This entire section is intentionally commented out.
   =========================================================


/* ---------------------------------------------------------
   S5 ADDITIONS — CUSTOM WIDGETS (MOVED FOR ORGANIZATION)
   --------------------------------------------------------- */

/* Coffeehouse Conversation Sidebar Widget */
.coffeehouse-widget { font-family: "Open Sans", Arial, sans-serif; text-align: center; background: #ffffff; border: 1px solid #036bb3; border-radius: 12px; padding: 18px; box-shadow: 0 4px 8px rgba(0,0,0,0.08); margin-bottom: 20px; }
.coffeehouse-widget img { width: 100%; max-width: 300px; border-radius: 8px; margin-bottom: 12px; }
.coffeehouse-widget h3 { font-size: 1.2em; color: #024a7a; margin-bottom: 6px; }
.coffeehouse-widget p { font-size: 0.95em; color: #2d2d2d; margin-bottom: 12px; }
.coffeehouse-widget a { display: inline-block; background: #036bb3; color: #fff; font-weight: 600; padding: 8px 16px; border-radius: 6px; text-decoration: none; transition: background 0.3s ease; }
.coffeehouse-widget a:hover { background: #024a7a; }

/* Contributors widget (final, conflict-free) */
.contributors-widget { font-size: 14px; }
.contributors-widget ul,
.contributors-widget li { list-style: none; margin: 0; padding: 0; }
.contributors-widget .contributors-list { margin: 0; padding: 0; }
.contributors-widget .contributors-list > li { margin: 0 0 20px; padding: 0 0 16px; border-bottom: 1px solid rgba(27,78,116,.16); }
.contributors-widget .contributors-list > li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.contributors-widget .contrib { display: grid; grid-template-columns: 92px 1fr; grid-auto-rows: auto; column-gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.contributors-widget .contrib > * { margin: 0; padding: 0; }
.contributors-widget .contrib img { width: 92px; height: 92px; object-fit: cover; grid-column: 1; grid-row: 1 / span 2; border-radius: 12px; box-shadow: inset 0 0 0 2px #1e3a5f; }
.contributors-widget .meta { grid-column: 2; grid-row: auto; min-width: 0; line-height: 1.25; }
.contributors-widget .name-row { display: flex; gap: 6px; align-items: baseline; flex-wrap: nowrap; margin: 0 0 2px 0; }
.contributors-widget .name-row strong { font-size: 18px; font-weight: 800; white-space: nowrap; }
.contributors-widget .name-row .tag { font-size: 14px; opacity: .9; white-space: nowrap; }
.contributors-widget .x-link { display: inline-block; font-size: 13px; line-height: 1.25; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; margin: 0; text-decoration: none; border: 0; color: inherit; }
.contributors-widget .contrib:hover { background: #f7f9fc; border-radius: 10px; }
@media (max-width: 480px) {
  .contributors-widget .contrib { grid-template-columns: 78px 1fr; column-gap: 10px; }
  .contributors-widget .contrib img { width: 78px; height: 78px; }
  .contributors-widget .name-row strong { font-size: 16px; }
  .contributors-widget .name-row .tag { font-size: 13px; }
  .contributors-widget .x-link { font-size: 12.5px; }
}
/* Stop upscaling 60px Gravatars in the Contributors widget (candidate) */
.contributors img.avatar,
.widget .avatar,
.rd-avatar {
  width: 60px !important;
  height: 60px !important;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
/* Winner sizing: prefer inside the widget */
.contributors-widget img.avatar,
.contributors-widget .avatar { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; display: block; }

/* ---------------------------------------------------------
   Jetpack Subscribe (Issue #14 + Issue #16) — moved here
   --------------------------------------------------------- */

#secondary .widget_blog_subscription input[type="submit"],
#secondary .widget_blog_subscription button,
#secondary .widget_blog_subscription .subscribe-submit input,
#secondary .widget_blog_subscription .subscribe-submit button,

/* 2) Jetpack block markup (if used anywhere in sidebar) */
#secondary .wp-block-jetpack-subscriptions__button button,
#secondary .wp-block-jetpack-subscriptions__button .wp-element-button,

/* 3) Generic “just in case Jetpack swapped tags” */
#secondary .jetpack_subscription_widget input[type="submit"],
#secondary .jetpack_subscription_widget button {
  background: #0F2E46 !important;
  color: #ffffff !important;
  border: 0 !important;

  /* The usual “it’s there but not visible” culprits */
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;

  /* Keep it pill-ish and consistent */
  border-radius: 999px !important;
  padding: 14px 22px !important;
  font-weight: 600 !important;
  line-height: 1 !important;

  /* Prevent theme link rules from “inking out” text */
  text-decoration: none !important;
}

/* Hover */
#secondary .widget_blog_subscription input[type="submit"]:hover,
#secondary .widget_blog_subscription button:hover,
#secondary .wp-block-jetpack-subscriptions__button button:hover,
#secondary .wp-block-jetpack-subscriptions__button .wp-element-button:hover,
#secondary .jetpack_subscription_widget input[type="submit"]:hover,
#secondary .jetpack_subscription_widget button:hover {
  background: #1B4E74 !important;
  color: #ffffff !important;
}

/* Active (tap/click) */
#secondary .widget_blog_subscription input[type="submit"]:active,
#secondary .widget_blog_subscription button:active,
#secondary .wp-block-jetpack-subscriptions__button button:active,
#secondary .wp-block-jetpack-subscriptions__button .wp-element-button:active,
#secondary .jetpack_subscription_widget input[type="submit"]:active,
#secondary .jetpack_subscription_widget button:active {
  background: #0B2235 !important;
  color: #ffffff !important;
}


/* =========================================================
   Jetpack / Subscribe widget — kill two-tone hover block
   (keeps pill button, removes big blue rectangle on hover)
   ========================================================= */

/* 1) Make sure the wrapper around the submit button never paints a background */
.widget .jetpack_subscription_widget form p,
.widget .jetpack_subscription_widget form p#subscribe-submit,
.widget .jetpack_subscription_widget form p#subscribe-submit:hover,
.widget .jetpack_subscription_widget form .wp-block-button,
.widget .jetpack_subscription_widget form .wp-block-button:hover,
.widget .jetpack_subscription_widget form .wp-block-buttons,
.widget .jetpack_subscription_widget form .wp-block-buttons:hover,
.widget .jetpack_subscription_widget form .wp-element-button,
.widget .jetpack_subscription_widget form .wp-element-button:hover {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
}

/* (Cleanup) Orphaned selector and invalid string removed — no visual effect. */

/* hover */
.widget .jetpack_subscription_widget form input[type="submit"]:hover,
.widget .jetpack_subscription_widget form button[type="submit"]:hover {
  background: #0B2438 !important;      /* hover */
  box-shadow: none !important;
  background-image: none !important;
}

/* active (pressed) */
.widget .jetpack_subscription_widget form input[type="submit"]:active,
.widget .jetpack_subscription_widget form button[type="submit"]:active {
  background: #081A28 !important;      /* active */
  transform: translateY(1px);
}

/* 3) If Jetpack/theme adds pseudo-elements that create blocks, remove them */
.widget .jetpack_subscription_widget form p#subscribe-submit::before,
.widget .jetpack_subscription_widget form p#subscribe-submit::after,
.widget .jetpack_subscription_widget form .wp-block-button::before,
.widget .jetpack_subscription_widget form .wp-block-button::after {
  content: none !important;
  display: none !important;
}
   RD S6: POSTS, COMPONENTS & SPECIAL PAGES
   ========================================================= */

/* Single Post Meta */
.single-post .entry-meta {
  font-size: 14px;
  color: #666;
  font-style: italic;
  margin-bottom: 1em;
  line-height: 1.4;
}
.single-post .entry-meta a { font-size: 15px; color: #222; font-weight: 600; }
.single-post .entry-meta span.posted-on,
.single-post .entry-meta span.cat-links,
.single-post .entry-meta span.tags-links { display: none; }

/* Contributors toggle */
.contributors-toggle {
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-bottom: 25px;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  font-family: "Merriweather", serif;
}
.contributors-toggle summary {
  font-size: 20px;
  color: #111;
  padding: 10px 12px;
  cursor: pointer;
  background-color: #e6f4fd;
  border-left: 4px solid #286292;
  border-radius: 10px 10px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.contributors-toggle img {
  width: 60px; height: 60px; border-radius: 50%;
  object-fit: cover; margin-right: 12px; border: 2px solid var(--rd-accent);
}

/* Author box */
.ast-author-box .avatar {
  float: none !important; display: block; margin: 0 auto 15px; border-radius: 50%; width: 120px !important; height: 120px !important; object-fit: cover;
}

/* Related posts (manual widget) */
.manual-related-posts-with-thumbs {
  margin-top: 26px; padding: 20px; background: #f9f9f9; border-top: 2px solid #ccc; max-width: 720px; margin-left: auto; margin-right: auto;
}
.manual-related-posts-with-thumbs h3 { font-size: 20px; margin-bottom: 20px; font-weight: 700; }
.manual-related-posts-with-thumbs .related-item { display: flex; align-items: center; margin-bottom: 20px; }
.manual-related-posts-with-thumbs .related-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; margin-right: 15px; flex-shrink: 0; }
.manual-related-posts-with-thumbs .related-item a { color: #0056b3; font-weight: 600; text-decoration: none; font-size: 16px; line-height: 1.4; }
.manual-related-posts-with-thumbs .related-item a:hover { color: #003366; text-decoration: underline; }
@media screen and (max-width: 600px) {
  .manual-related-posts-with-thumbs .related-item { flex-direction: column; align-items: flex-start; }
  .manual-related-posts-with-thumbs .related-item img { margin-right: 0; margin-bottom: 10px; width: 100%; height: auto; }
}
/* Recommended list with image */
.recommended-list li.recommended-with-image { display: flex; align-items: center; gap: 12px; margin-bottom: 1em; }
.recommended-list li.recommended-with-image img.recommended-thumb { width: 80px; height: auto; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.recommended-list li.recommended-with-image span { font-weight: 500; color: var(--rd-accent); line-height: 1.4; }


/* — Essays, Endnotes, TOC (scoped) — */
.rd-essay { max-width: 750px; margin: 0 auto; padding: 1rem 1.5rem; line-height: 1.7; font-size: 1.05rem; }
.rd-essay .entry-title { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 0.3em; color: #222; }
.rd-essay .byline { text-align: center; font-style: italic; font-size: 0.95rem; color: #555; margin-bottom: 2rem; }
.rd-essay h2 { font-size: 1.5rem; font-weight: 600; margin: 2.2rem 0 1rem; color: #333; text-align: left; border-left: 4px solid #708090; padding-left: 0.6rem; }
.rd-essay p { margin-bottom: 1.2rem; color: #2b2b2b; }
.rd-essay blockquote { border-left: 4px solid #c0c0c0; margin: 1.5rem 0; padding: 0.5rem 1.2rem; font-style: italic; background: #f9f9f9; color: #444; }
.rd-essay blockquote p { margin: 0; }
.rd-essay ul { margin: 1rem 0 1.5rem 2rem; list-style-type: disc; }
.rd-essay ul li { margin-bottom: 0.6rem; color: #333; }
.rd-essay p, .rd-essay li { font-variant-numeric: lining-nums; }
.rd-essay p em, .rd-essay li em { color: #555; font-style: italic; }
@media (max-width: 768px) { .rd-essay { padding: 1rem; font-size: 1.1rem; line-height: 1.75; } .rd-essay .entry-title { font-size: 1.7rem; line-height: 1.3; } .rd-essay .byline { font-size: 0.9rem; margin-bottom: 1.5rem; } .rd-essay h2 { font-size: 1.3rem; margin: 1.8rem 0 0.8rem; padding-left: 0.5rem; } .rd-essay blockquote { margin: 1.2rem 0; padding: 0.7rem 1rem; font-size: 1rem; } .rd-essay ul { margin-left: 1.5rem; } }

/* Endnotes */
#endnotes { font-size: 0.9em; line-height: 1.6; margin-top: 2rem; border-top: 1px solid #ccc; padding-top: 1rem; }
#endnotes h3 { font-size: 1.1em; font-weight: bold; margin-bottom: 0.75rem; }
#endnotes ol { padding-left: 1.25rem; margin: 0; }
#endnotes li { margin-bottom: 0.5rem; }
.post-content sup a { text-decoration: none; font-size: 0.8em; vertical-align: super; }

.contributors-page a { transition: background .25s ease, border-color .25s ease; }
@media (max-width: 420px) { .contributors-page article img { width: 120px; height: 120px; } .contributors-page article { padding: 18px; } .contributors-page h3 { font-size: 1.2em; } .contributors-page a[href*="/author/"], .contributors-page a[href*="?author="] { font-size: 0.95em; } }

/* RD article blockquotes (scoped; deduped) */
.rd-article blockquote { border-left: 4px solid #036bb3; padding: 1em 1.25em; margin: 1.5em 0; background: #f9f9f9; font-style: italic; color: #333; }
.rd-article blockquote p { margin: 0; }
.rd-article blockquote.accent { border-left: 4px solid #0693e3; background: #f0faff; color: #222; }

/* Global content blockquotes — scoped to content containers */
.entry-content blockquote,
.wp-block-quote { border-left: 4px solid #036bb3; background: #f9f9f9; padding: 1em 1.25em; margin: 1.5em 0; font-style: italic; color: #333; }
.entry-content blockquote p, .wp-block-quote p { margin: 0; }
.entry-content blockquote.accent, .wp-block-quote.accent { border-left-color: #0693e3; background: #f0faff; color: #222; }

/* Gutenberg pullquotes aligned with site style */
.wp-block-pullquote { border-left: 4px solid #036bb3; padding: 1em 1.25em; margin: 1.5em 0; background: #f9f9f9; font-style: italic; color: #333; }
.wp-block-pullquote blockquote { border: 0; padding: 0; background: transparent; }
.wp-block-pullquote.is-style-solid-color { background: #f9f9f9 !important; }

/* Outline / TOC nav */
.rd-outline,
.entry-content nav[aria-label="Article outline"] { border: 1px solid #e6eef5; background: #fbfdff; padding: .75rem 1rem; border-left: 4px solid #036bb3; margin: 1.25rem 0; }
.rd-outline ul,
.entry-content nav[aria-label="Article outline"] ul { list-style: none; margin: 0; padding-left: 0; }
.rd-outline li,
.entry-content nav[aria-label="Article outline"] li { margin: .25rem 0; }
.rd-outline a,
.entry-content nav[aria-label="Article outline"] a { text-decoration: none; }
.rd-outline a:hover,
.entry-content nav[aria-label="Article outline"] a:hover { text-decoration: underline; }

/* Single Post Spacing & Article shells */
.rd-article {
  --rd-blue:#036bb3;
  --rd-accent:#0693e3;
  --rd-ink:#1f2937;
  --rd-muted:#6b7280;
  --rd-paper:#fbfaf7;
  --rd-border:#e5e7eb;
}
body.single-post .ast-article-single .post-thumb { margin-top: 12px; margin-bottom: 20px; }
body.single-post .ast-article-single .post-thumb img { width: 100%; height: auto !important; object-fit: cover; object-position: center; display: block; border-radius: 6px; }
body.single-post .site-header + .site-content .ast-container { margin-top: 12px; }
.rd-article { max-width: 760px; margin: 2.5rem auto; padding: 1.25rem 1.25rem 2rem; background: var(--rd-paper); color: var(--rd-ink); border: 1px solid var(--rd-border); border-radius: 14px; box-shadow: 0 2px 14px rgba(0,0,0,.05); }
.rd-article__header h1 { margin: 0 0 .25rem; line-height: 1.2; font-weight: 800; }
.rd-article__byline { margin: 0 0 1.25rem; color: var(--rd-muted); font-style: italic; }
.rd-divider { border: 0; height: 1px; background: linear-gradient(90deg,transparent,var(--rd-border),transparent); margin: 1.25rem 0 1.5rem; }
.rd-list { margin: .5rem 0 1rem 1.25rem; }
.rd-toc { border: 1px solid var(--rd-border); background: #fff; border-radius: 12px; padding: .75rem 1rem; margin: 0 0 1.25rem; }
.rd-toc__title { font-weight: 700; margin-bottom: .25rem; color: var(--rd-blue); }
.rd-toc ol { margin: 0; padding-left: 1.25rem; }
.rd-toc a { text-decoration: none; border-bottom: 1px dotted var(--rd-accent); }
.rd-toc a:hover,.rd-toc a:focus { color: var(--rd-blue); border-bottom-style: solid; }
.rd-quote { position: relative; margin: 1rem 0 1.25rem; padding: .9rem 1rem .9rem 1.1rem; background: #fff; border-left: 4px solid var(--rd-blue); border-radius: 10px; box-shadow: 0 1px 8px rgba(0,0,0,.035); }
.rd-quote p { margin: 0 0 .5rem; font-size: 1.05rem; line-height: 1.6; }
.rd-quote cite { display: block; color: var(--rd-muted); font-style: normal; font-size: .95rem; }
.rd-quote--neutral { border-left-color: var(--rd-border); }
.rd-quote--scripture { border-left-color: var(--rd-accent); }
.rd-quote::before { content: "“"; position: absolute; top: -10px; left: -10px; font-size: 3rem; line-height: 1; color: var(--rd-blue); opacity: .12; }
.rd-article__footer { margin-top: 2rem; display: flex; justify-content: flex-end; }
.rd-top { text-decoration: none; font-weight: 600; border: 1px solid var(--rd-border); padding: .5rem .75rem; border-radius: 999px; background: #fff; }
.rd-top:hover { border-color: var(--rd-accent); color: var(--rd-blue); }
@media (max-width: 600px) { .rd-article { margin: 1rem auto; padding: 1rem; } .rd-quote p { font-size: 1rem; } }

/* Reformed-article variant */
.reformed-article { font-family: "Merriweather", Georgia, serif; line-height: 1.75; font-size: 18px; color: #222; margin: 0 auto; max-width: 760px; padding: 1rem 1.5rem; }
.reformed-article .section-title { text-align: center; font-size: 1.8rem; margin: 2.5rem 0 1.5rem; color: #036bb3; font-weight: bold; border-bottom: 2px solid #0693e3; display: inline-block; padding-bottom: .3rem; }
.reformed-article .intro { font-size: 1.25rem; font-style: italic; margin-bottom: 1.5rem; color: #444; }
.reformed-article blockquote { border-left: 4px solid #ccc; margin: 1.5rem 0; padding: 1rem 1.25rem; background: #f9f9f9; font-style: italic; font-size: 1.05rem; line-height: 1.7; color: #333; }
.reformed-article .epigraph { border-left-color: #555; background: #fafafa; font-size: 1.15rem; font-weight: 500; text-align: center; color: #111; }
.reformed-article .scripture { border-left-color: #036bb3; background: #f0f8ff; font-style: normal; font-weight: 500; color: #023e8a; }
.reformed-article .confession { border-left-color: #8b0000; background: #fff5f5; font-style: normal; font-weight: 500; color: #600000; }
.reformed-article .quote { border-left-color: #444; background: #fefefe; font-style: italic; font-size: 1.1rem; color: #111; }
.reformed-article .faith-components { margin: 1rem 0 1.5rem 2rem; list-style-type: square; }
.reformed-article .encouragement-list { margin: 1.5rem 0 2rem 1.5rem; padding: 0; }
.reformed-article .encouragement-list li { margin-bottom: .75rem; }
.reformed-article .encouragement-title { text-align: center; font-size: 1.4rem; margin-top: 2.5rem; color: #444; font-weight: bold; text-transform: uppercase; letter-spacing: .05rem; }

/* Heidelblog / Pubs */
/* .rd-pubs base rule consolidated — see "Responsive Fix for Heidelblog Contributions Page" below */

.rd-pubs,
.rd-pubs p,
.rd-pubs h3,
.rd-pubs h3 a,
.rd-desc,
.rd-meta {
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:break-word !important;
  hyphens:auto;
}

/* Master heading at top of Heidelblog page */
.rd-master-heading {
  font-family:"Georgia","Times New Roman",serif;
  font-size:2rem;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  color:#024a7a;
  text-align:center;
  margin:1rem 0 .5rem;
  text-shadow:0 1px 2px rgba(0,0,0,0.12);
}

.rd-master-subtitle {
  font-family:"Georgia","Times New Roman",serif;
  font-size:1.1rem;
  color:#374151;
  text-align:center;
  margin:0 0 2rem;
}

/* Section titles (Anthony, Julie, Charles, etc.) */
.rd-pubs h3.section-title {
  font-family:"Georgia","Times New Roman",serif;
  font-size:1.75rem;
  font-weight:700;
  letter-spacing:0.8px;
  text-transform:uppercase;
  color:#024a7a;
  margin:2.2rem 0 .75rem;
  text-align:left;
  text-shadow:0 1px 2px rgba(0,0,0,0.10);
}

/* RD-blue accent underline under each section title */
.rd-pubs h3.section-title:after {
  content:"";
  display:block;
  width:72px;
  height:3px;
  background:#024a7a;
  border-radius:2px;
  margin:.4rem 0 1.2rem;
}

/* Card content */
.rd-item {
  background:#f9fbfd;
  border:1px solid #dbe7f3;
  border-left:6px solid #036bb3;
  border-radius:10px;
  padding:1rem 1.25rem;
  margin:1.5rem 0;
  box-shadow:0 4px 10px rgba(0,0,0,.05);
}

.rd-item h3 {
  margin:.3rem 0 .5rem;
}

.rd-item h3 a {
  color:#024a7a;
  font-size:1.35rem;
  font-weight:600;
  text-decoration:none;
  transition:color .15s ease;
}

.rd-item h3 a:hover {
  color:#0693e3;
  text-decoration:underline;
}

.rd-meta {
  font-size:.9rem;
  color:#5b6472;
  margin:.2rem 0 .7rem;
}

.rd-desc {
  font-size:1rem;
  margin:.3rem 0 .7rem;
}

.rd-note {
  font-size:.9rem;
  color:#6b7280;
}

/* Mobile polish */
@media (max-width:640px) {
  .rd-pubs {
    padding:0 .6rem;
  }

  .rd-item {
    padding:.9rem 1rem;
  }

  .rd-item h3 {
    font-size:1.18rem;
  }

  .rd-master-heading {
    font-size:1.65rem;
    letter-spacing:.7px;
  }

  .rd-master-subtitle {
    font-size:1rem;
    margin-bottom:1.5rem;
  }

  .rd-pubs h3.section-title {
    font-size:1.45rem !important;
    letter-spacing:0.6px !important;
    margin:1.6rem 0 .6rem !important;
    text-shadow:0 1px 2px rgba(0,0,0,0.10);
  }
}


/* Responsive Fix for Heidelblog Contributions Page */
.rd-pubs { max-width: 820px; margin: 0 auto 2.5rem; padding: 0 16px; font-family: "Georgia", "Times New Roman", serif; color: #1f2937; line-height: 1.7; font-size: 1rem; }

.rd-pubs h3.section-title {
  font-family:"Georgia","Times New Roman",serif;
  font-size:1.75rem;
  font-weight:700;
  letter-spacing:0.8px;
  text-transform:uppercase;
  color:#024a7a;
  margin:2.2rem 0 .75rem;
  text-align:left;
}

@media screen and (max-width: 600px) {
  .rd-pubs {
    padding: 0 12px;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .rd-pubs h3.section-title {
    font-size:1.45rem !important;
    letter-spacing:0.6px !important;
    margin:1.6rem 0 .6rem !important;
  }
}

/* Featured Images: single posts/pages & archives */
.page .entry-content > p:first-child img,
.single .entry-content > p:first-child img,
.page .ast-single-featured-image img,
.single .ast-single-featured-image img,
.entry-content img.aligncenter,
.entry-content img.alignnone { width: 100% !important; height: auto !important; max-width: 100% !important; }
.entry-content img.size-thumbnail,
.entry-content img.size-medium { width: 100% !important; height: auto !important; }
.blog .post-thumb img,
.archive .post-thumb img,
.ast-separate-container .ast-article-post .post-thumb img { width: 100% !important; height: auto !important; }
.entry-content img { max-width: 860px; margin: 0 auto; display: block; }

/* iPhone/iOS Safari: show full featured image */
@supports (-webkit-touch-callout: none) {
  .ast-single-post-featured-section,
  .ast-single-post-featured-section .post-thumb,
  .ast-article-single .post-thumb,
  .entry-header .post-thumb,
  .wp-block-post-featured-image,
  .wp-block-post-featured-image a { height: auto !important; max-height: none !important; aspect-ratio: auto !important; overflow: visible !important; }
  .ast-single-post-featured-section img.wp-post-image,
  .entry-header .post-thumb img,
  .ast-article-single .post-thumb img,
  .wp-block-post-featured-image img { position: static !important; display: block !important; width: 100% !important; max-width: 100% !important; height: auto !important; object-fit: contain !important; object-position: center center !important; }
  .ast-hero-section,
  .ast-advanced-headers-wrap,
  .ast-hero-banner { background-size: contain !important; background-repeat: no-repeat !important; background-position: center center !important; height: auto !important; min-height: auto !important; overflow: visible !important; }
}

/* Desktop: full-width featured images */
@media (min-width: 769px) {
  .ast-single-post-featured-section,
  .ast-single-post-featured-section .post-thumb,
  .wp-block-post-featured-image,
  .entry-header .post-thumb { width: 100% !important; max-width: 100% !important; height: auto !important; max-height: none !important; overflow: visible !important; }
  .ast-single-post-featured-section img.wp-post-image,
  .wp-block-post-featured-image img,
  .entry-header .post-thumb img { display: block !important; width: 100% !important; max-width: none !important; height: auto !important; object-fit: cover !important; object-position: center center !important; }
}
.ast-single-post-featured-section img.wp-post-image,
.wp-block-post-featured-image img,
.entry-header .post-thumb img { image-rendering: auto; content-visibility: auto; }

/* TOC fix: always visible on iPad/tablets */
@media (max-width: 1024px) {
  #table-of-contents,
  #toc,
  .table-of-contents,
  .post-toc,
  .article-toc,
  nav[aria-label="Table of contents"] { display: block !important; visibility: visible !important; max-height: none !important; overflow: visible !important; position: relative !important; z-index: 10; }
  .entry-content,
  .site-content,
  .ast-container { overflow: visible !important; }
}

  /* <-- closes correctly */

/* =========================================================
   6.x POST ELEMENTS — BLOCKQUOTES (Refined Edition)
   Slight gradient + inset shadow for print-quality finish
   ========================================================= */

/* =========================================================
   6.x POST ELEMENTS — BLOCKQUOTES (Refined Gradient Edition)
   Slight RD gradient + inset shadow for magazine-quality depth
   ========================================================= */
.single-post .entry-content blockquote {
  margin: 1.8rem auto;
  padding: 1.3rem 1.6rem 1.4rem 1.6rem;
  border-left: 4px solid #1B4E74; /* RD navy */

  /* Subtle RD gradient – light at top, fades downward */
  background: linear-gradient(
    180deg,
    rgba(27, 78, 116, 0.08) 0%,
    rgba(27, 78, 116, 0.03) 60%,
    rgba(255, 255, 255, 0.0) 100%
  );

  /* Gentle inset shadow for depth */
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.06);

  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.7;
  max-width: 780px;
  border-radius: 6px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

/* Hover – just a tiny lift of brightness (desktop only) */
@media (hover:hover) {
  .single-post .entry-content blockquote:hover {
    background: linear-gradient(
      180deg,
      rgba(27, 78, 116, 0.10) 0%,
      rgba(27, 78, 116, 0.05) 60%,
      rgba(255, 255, 255, 0.0) 100%
    );
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
  }
}

/* Mobile optimization */
@media (max-width: 920px) {
  .single-post .entry-content blockquote {
    margin: 1.4rem -0.2rem;
    padding: 1rem 1.3rem 1.1rem 1.3rem;
    max-width: 100%;
  }
}
/* =========================================================
   RD S7: FOOTER
   ========================================================= */

/* Footer background + colors */
.site-footer,
.site-primary-footer-wrap,
.site-below-footer-wrap,
.ast-small-footer {
  background: var(--rd-brand) !important;
  background-image: none !important;
  color: #ffffff !important;
}
.site-footer::before,
.site-footer::after,
.site-primary-footer-wrap::before,
.site-primary-footer-wrap::after,
.site-below-footer-wrap::before,
.site-below-footer-wrap::after { content: none !important; background: none !important; box-shadow: none !important; }
.site-footer .ast-builder-grid-row-container,
.site-footer .ast-builder-grid-row-container-inner,
.site-footer .ast-builder-layout-element,
.site-footer .ast-builder-layout-element *,
.site-footer .ast-container { background: transparent !important; box-shadow: none !important; border: 0 !important; }
.site-footer,
.site-footer p,
.site-footer a,
.site-footer .menu a,
.site-footer .ast-builder-html-element,
.site-footer .ast-builder-html-element a,
.ast-small-footer,
.ast-small-footer a,
.site-footer .ast-footer-copyright { color: #ffffff !important; opacity: 1 !important; text-shadow: none !important; }
.site-footer a:hover { color: #E6F4FD !important; text-decoration: underline; }
.site-footer .ast-builder-grid-row-container-inner { padding: 16px 0 !important; }
.site-footer .separator,
.site-footer .pipe,
.site-footer .ast-builder-html-element span { color: #ffffff !important; }
.ast-footer-copyright,
.ast-footer-copyright a { color: #ffffff !important; opacity: .85; }

/* Footer links (fix white box) */
.footer-links { text-align: center; font-family: "Merriweather", serif; font-size: 15px; padding: 10px 0; color: #222; }
.footer-links a { background: transparent !important; color: #ffffff; text-decoration: none; margin: 0 6px; }
.footer-links a:hover { color: #036bb3; text-decoration: underline; }

/* Contributors block in footer */
.footer-contributors { text-align: center; margin: 1.5rem auto; }
.footer-contributors h3 { margin-bottom: .75rem; color: #ffffff; }
.footer-contributors ul { list-style: none; margin: 0 0 .75rem 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; }
.footer-contributors li { display: inline-block; }
.footer-contributors .badge-urc, .footer-contributors .badge-pca, .footer-contributors .badge-opc { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: #fff; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.footer-contributors .badge-urc { background: linear-gradient(180deg,#3aa0e6,#036bb3); }
.footer-contributors .badge-pca { background: linear-gradient(180deg,#45a073,#2a7c55); }
.footer-contributors .badge-opc { background: linear-gradient(180deg,#7c74d8,#4b3db8); }
.footer-contributors a { color: #ffffff; font-weight: 600; text-decoration: none; }
.footer-contributors a:hover { color: #4daaf2; text-decoration: underline; }

  /* =========================================================
   RD S8 — UTILITIES, ACCESSIBILITY & FINAL PATCHES (SAFE, FINAL)
   ========================================================= */

/* 8.1 Accessibility helpers */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* 8.2 POSTS ONLY: disable multi-columns (do not touch pages) */
.single-post .entry-content {
  -webkit-column-count: 1 !important;
  -moz-column-count: 1 !important;
  column-count: 1 !important;
  -webkit-column-width: auto !important;
  -moz-column-width: auto !important;
  column-width: auto !important;
  -webkit-column-gap: normal !important;
  -moz-column-gap: normal !important;
  column-gap: normal !important;
  -webkit-column-rule: none !important;
  -moz-column-rule: none !important;
  column-rule: none !important;
}

/* 8.3 POSTS ONLY: keep inline elements inline */
.single-post .entry-content a,
.single-post .entry-content span,
.single-post .entry-content em,
.single-post .entry-content i,
.single-post .entry-content strong,
.single-post .entry-content b,
.single-post .entry-content u,
.single-post .entry-content sup,
.single-post .entry-content sub,
.single-post .entry-content code,
.single-post .entry-content kbd,
.single-post .entry-content mark,
.single-post .entry-content small {
  display: inline !important;
  position: static !important;
  width: auto !important;
  max-width: none !important;
}

/* 8.4 POSTS ONLY: prevent pullquotes/widgets from re-enabling columns */
.single-post .entry-content .wp-block-pullquote,
.single-post .entry-content .pullquote,
.single-post .entry-content .widget {
  -webkit-column-count: 1 !important;
  column-count: 1 !important;
  -webkit-column-rule: none !important;
  column-rule: none !important;
}

/* 8.6 POSTS ONLY: nuke decorative pseudo-elements */
.single-post .entry-content p::before,
.single-post .entry-content p::after,
.single-post .entry-content .wp-block-group::before,
.single-post .entry-content .wp-block-group::after,
.single-post .entry-content blockquote::before,
.single-post .entry-content blockquote::after {
  content: none !important;
}

/* 8.7 POSTS ONLY: Jetpack sharing cleanups */
.single-post .sharedaddy .sd-content a.sd-button::after,
.single-post .sharedaddy .sd-content a.share-email::after,
.single-post .jetpack-sharing-buttons a::after,
.single-post .entry-content a[title*="email a link to a friend"] {
  content: "" !important;
  display: none !important;
}
.single-post .sharedaddy .sd-content li.share-more,
.single-post .jetpack-sharing-buttons li.share-more,
.single-post .entry-content .share-more,
.single-post .entry-content a.share-more {
  display: none !important;
}

/* 8.8 Accessibility: consistent focus ring */
.entry-content a:focus,
button:focus,
input:focus {
  outline: 2px solid var(--rd-accent) !important;
  outline-offset: 2px !important;
}

/* 8.9 POSTS ONLY: final inline link failsafe */
.single-post .entry-content a,
.single-post .entry-content a:link,
.single-post .entry-content a:visited,
.single-post .entry-content a:hover,
.single-post .entry-content a:focus,
.single-post .entry-content a:active {
  display: inline !important;
  position: static !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
  vertical-align: baseline !important;
  white-space: normal !important;
  line-height: inherit !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  text-decoration: underline !important;
  text-underline-offset: 0.12em !important;
  text-decoration-thickness: 1.5px !important;
  color: var(--rd-accent) !important;
}
.single-post .entry-content a::before,
.single-post .entry-content a::after { content: none !important; }
.single-post .entry-content a:focus {
  outline: 2px solid var(--rd-accent) !important;
  outline-offset: 2px !important;
}

/* 8.10 PAGES: keep real buttons/pills looking like buttons */
.page .entry-content a.button,
.page .entry-content a[class*="btn"],
.page .entry-content .wp-block-button__link {
  display: inline-block !important;
  text-decoration: none !important;
  border-radius: 9999px;
  padding: .45em .9em;
  line-height: 1.2;
}

/* =========================================================
   OUR CONTRIBUTORS — minimal, working overrides
   (kept inside S8 for convenience)
   ========================================================= */

/* A) Family pills with distinct colors */
body.page .entry-content a[href*="#"] {
  display:inline-block !important;
  padding:.48em 1.05em !important;
  border-radius:9999px !important;
  text-decoration:none !important;
  line-height:1.2 !important;
  font-weight:600 !important;
  color:#fff !important;
}
body.page .entry-content a[href*="#urc" i] { background:#1B4E74 !important; } /* URC */
body.page .entry-content a[href*="#pca" i] { background:#2F855A !important; } /* PCA */
body.page .entry-content a[href*="#opc" i] { background:#4437A5 !important; } /* OPC */
body.page .entry-content a[href*="#urc" i]:hover { background:#163D5C !important; }
body.page .entry-content a[href*="#pca" i]:hover { background:#276749 !important; }
body.page .entry-content a[href*="#opc" i]:hover { background:#32268F !important; }

/* 8.x HEADER: shift logo + menu ~1/4" to the right (desktop only) */
@media (min-width: 921px) {
  /* Astra Header Builder rows (covers most setups) */
  .ast-desktop .ast-primary-header-bar .ast-builder-grid-row,
  .ast-desktop .main-header-bar .ast-builder-grid-row,
  .ast-desktop .site-header .ast-builder-grid-row,
  .ast-desktop .site-header .ast-builder-grid-row-container {
    transform: translateX(0.25in) !important;
  }
}

/* =========================================================
   RD S8 — Mobile header cleanup + link color reset
   (Formatting only — no behavioral changes)
   ========================================================= */

/* =========================
   1) MOBILE HEADER CLEANUP
   ========================= */

/* 1.1 Remove blue background behind hamburger */
@media (max-width: 921px) {
  .ast-header-break-point .main-header-menu-toggle,
  .ast-header-break-point .menu-toggle,
  .ast-header-break-point .ast-mobile-menu-trigger {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .ast-header-break-point .main-header-menu-toggle:hover,
  .ast-header-break-point .main-header-menu-toggle:focus,
  .ast-header-break-point .menu-toggle:hover,
  .ast-header-break-point .menu-toggle:focus,
  .ast-header-break-point .ast-mobile-menu-trigger:hover,
  .ast-header-break-point .ast-mobile-menu-trigger:focus {
    background: transparent !important;
  }

  /* 1.2 Remove underline/line under the search icon */
  .ast-header-break-point .ast-search-menu-icon,
  .ast-header-break-point .ast-search-menu-icon a {
    text-decoration: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .ast-header-break-point .ast-search-menu-icon::before,
  .ast-header-break-point .ast-search-menu-icon::after {
    content: none !important;
  }
}

/* =========================
   2) CONTENT LINK COLORS
   ========================= */

/* 2.1 Tokens */

/* 2.2 Default content links */
body .entry-content a,
body .entry-content a:link,
body .entry-content a:visited,
body .entry-content h1 a,
body .entry-content h2 a,
body .entry-content h3 a,
body .entry-content h4 a,
body .entry-content h5 a,
body .entry-content h6 a {
  color: var(--rd-link) !important;
  text-decoration-color: currentColor;
}

body .entry-content a:hover,
body .entry-content a:focus,
body .entry-content a:active,
body .entry-content h1 a:hover,
body .entry-content h2 a:hover,
body .entry-content h3 a:hover,
body .entry-content h4 a:hover,
body .entry-content h5 a:hover,
body .entry-content h6 a:hover {
  color: var(--rd-link-hover) !important;
}

/* 2.3 Sidebar & footer links (optional match to content) */
.sidebar .widget a,
.footer-widget-area a {
  color: var(--rd-link) !important;
}

.sidebar .widget a:hover,
.footer-widget-area a:hover {
  color: var(--rd-link-hover) !important;
}

/* 2.4 Additional content link enforcement */
.ast-single-post .entry-content a,
.ast-single-post .entry-content a:link,
.ast-single-post .entry-content a:visited,
.ast-page-builder-template .site-main .entry-content a,
.ast-separate-container .site-main .entry-content a,
.site-main .entry-content a,
.content-area .entry-content a,
.entry-content p a,
.entry-content li a {
  color: #1B4E74 !important;
  text-decoration-color: currentColor;
}

.ast-single-post .entry-content a:hover,
.ast-page-builder-template .site-main .entry-content a:hover,
.ast-separate-container .site-main .entry-content a:hover,
.site-main .entry-content a:hover,
.content-area .entry-content a:hover,
.entry-content p a:hover,
.entry-content li a:hover {
  color: #036bb3 !important;
}

/* ====== Color Chips Navigation ====== */
nav.color-chips {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

nav.color-chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

nav.color-chips a:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Individual Chip Colors */
nav.color-chips a.urc-family {
  background: linear-gradient(180deg, #3aa0e6, #036bb3);
}

nav.color-chips a.pca-family {
  background: linear-gradient(180deg, #45a073, #2a7c55);
}

nav.color-chips a.opc-family {
  background: linear-gradient(180deg, #7c74d8, #4b3db8);
}

nav.color-chips a.guest-contributors {
  background: linear-gradient(180deg, #e5c16a, #b38b2c);
}

/* ======================================================
   4) END-OF-POST "DISCOVER MORE" SUBSCRIBE PANEL (Jetpack)
   ====================================================== */

/* 4.1 Token for sizing */
.wpcom-end-of-post-subscribe,
.wp-block-jetpack-subscriptions {
  --rd-subscribe-height: 50px;
}

/* 4.2 Email field: normalize height and spacing */
.wpcom-end-of-post-subscribe input[type="email"],
.wp-block-jetpack-subscriptions input[type="email"] {
  height: var(--rd-subscribe-height);
  padding: 0 14px !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  box-sizing: border-box;
}

/* 4.3 Button: undo oversized global styles just for this panel */
.wpcom-end-of-post-subscribe .wp-block-button__link,
.wpcom-end-of-post-subscribe button,
.wpcom-end-of-post-subscribe input[type="submit"],
.wp-block-jetpack-subscriptions .wp-block-button__link,
.wp-block-jetpack-subscriptions button,
.wp-block-jetpack-subscriptions input[type="submit"] {
  height: var(--rd-subscribe-height) !important;
  padding: 0 18px !important;
  font-size: 16px !important;
  line-height: 1 !important;
  border-radius: 8px !important;
  width: auto !important;            /* prevent full-width “brick” */
  box-sizing: border-box;
}

/* 4.4 Keep the input + button on one line on wider screens */
.wpcom-end-of-post-subscribe .wp-block-jetpack-subscriptions__form,
.wp-block-jetpack-subscriptions .wp-block-jetpack-subscriptions__form {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* 4.5 Kill the spinner/loader that’s flashing on top of the button */
.wpcom-end-of-post-subscribe .is-busy:after,
.wp-block-jetpack-subscriptions .is-busy:after {
  display: none !important;
  content: none !important;
}

/* 4.6 Prevent global .wp-block-button rules from ballooning this area */
.wpcom-end-of-post-subscribe .wp-block-button,
.wp-block-jetpack-subscriptions .wp-block-button {
  width: auto !important;
  margin: 0 !important;
}

/* 4.7 HARD-KILL any spinner/loader in the end-of-post subscribe box */
.wpcom-end-of-post-subscribe .wp-block-button__link:after,
.wpcom-end-of-post-subscribe .wp-block-button__link:before,
.wpcom-end-of-post-subscribe button:after,
.wpcom-end-of-post-subscribe button:before,
.wpcom-end-of-post-subscribe .is-busy:after,
.wpcom-end-of-post-subscribe .is-loading:after,
.wpcom-end-of-post-subscribe .has-spinner:after,
.wp-block-jetpack-subscriptions .wp-block-button__link:after,
.wp-block-jetpack-subscriptions .wp-block-button__link:before,
.wp-block-jetpack-subscriptions button:after,
.wp-block-jetpack-subscriptions button:before,
.wp-block-jetpack-subscriptions .is-busy:after,
.wp-block-jetpack-subscriptions .is-loading:after,
.wp-block-jetpack-subscriptions .has-spinner:after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

/* 4.8 If spinner/gradient is a background layer */
.wpcom-end-of-post-subscribe .wp-block-button__link,
.wp-block-jetpack-subscriptions .wp-block-button__link {
  background-image: none !important;
  position: relative; /* keeps layout sane after removing pseudo-elements */
  overflow: hidden;   /* prevents stray bits from peeking in */
}

/* 4.9 Reformed Dogmatika — kill spinner on end-of-post Subscribe button */
#subscribe-submit,
button#subscribe-submit.wp-block-button__link {
  background: #036bb3 !important;           /* your RD blue */
  background-image: none !important;         /* override conic/linear gradients */
  -webkit-mask: none !important;             /* kill Safari/WebKit masks */
  -webkit-mask-image: none !important;
  mask: none !important;
  mask-image: none !important;
  box-shadow: none !important;               /* sometimes used for the arc */
  position: relative !important;
  overflow: hidden !important;
}

/* 4.10 If Jetpack draws the spinner as pseudo-elements on this exact button */
#subscribe-submit::after,
#subscribe-submit::before {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
  animation: none !important;
  -webkit-animation: none !important;
  -webkit-mask: none !important;
  mask: none !important;
  box-shadow: none !important;
  opacity: 0 !important;
}

/* 4.11 If the spinner is injected as a child node (svg/span/icon) */
#subscribe-submit svg,
#subscribe-submit span,
#subscribe-submit i {
  display: none !important;
}

/* 4.12 Extra safety: when Jetpack toggles “busy” classes on the button */
#subscribe-submit.is-busy,
#subscribe-submit.is-loading,
#subscribe-submit.is-submitting {
  animation: none !important;
  -webkit-animation: none !important;
  background-image: none !important;
  -webkit-mask: none !important;
  mask: none !important;
}

/* 4.13 Force Subscribe button to be a single solid RD blue */
#subscribe-submit,
button#subscribe-submit.wp-block-button__link {
  background: #036bb3 !important;           /* Solid RD blue */
  background-color: #036bb3 !important;     /* Ensure no gradient overlay */
  background-image: none !important;        /* Kill gradients */
  background-repeat: no-repeat !important;
  background-size: auto !important;
  border: none !important;                   /* Optional: remove any border line */
  box-shadow: none !important;               /* Remove glossy/3D effect */
  color: #fff !important;                    /* Keep text white */
}

/* 4.14 Flatten native Safari button styling on the Subscribe button */
#subscribe-submit {
  -webkit-appearance: none !important; /* kill Safari's default gradient */
  appearance: none !important;
  background-color: #036bb3 !important; /* solid RD blue */
  background-image: none !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  border-radius: 8px !important;        /* keep your shape */
  background-clip: padding-box !important;
}

#subscribe-submit:hover,
#subscribe-submit:focus,
#subscribe-submit:active {
  background-color: #036bb3 !important; /* keep it flat in all states */
}

/* 4.15 Flatten the Subscribe button AND anything inside it */
#subscribe-submit,
#subscribe-submit:hover,
#subscribe-submit:focus,
#subscribe-submit:active {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: #036bb3 !important;       /* solid RD blue */
  background-color: #036bb3 !important;
  background-image: none !important;
  background-blend-mode: normal !important;
  border: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  color: #fff !important;
  border-radius: 10px !important;
  overflow: hidden !important;           /* keep any strays clipped */
  isolation: isolate;                    /* stop blending from parents */
}

/* 4.16 Nuke ANY overlay on descendants */
#subscribe-submit *,
#subscribe-submit *::before,
#subscribe-submit *::after {
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  -webkit-mask: none !important;
  mask: none !important;
  opacity: 1 !important;                 /* keep text fully visible */
  color: inherit !important;             /* keep white text */
}

/* === HOMEPAGE & ARCHIVE LINK COLORS (unify with brand) === */
.blog .entry-title a,
.archive .entry-title a,
.blog .site-main a,
.archive .site-main a,
.blog .ast-pagination a,
.archive .ast-pagination a,
.blog .entry-meta a,
.archive .entry-meta a {
  color: var(--rd-brand) !important;
  text-decoration-color: currentColor !important;
}

.blog .entry-title a:hover,
.archive .entry-title a:hover,
.blog .site-main a:hover,
.archive .site-main a:hover,
.blog .entry-meta a:hover,
.archive .entry-meta a:hover {
  color: var(--rd-blue-dark) !important;
}

/* Read-More on cards */
.blog a.more-link,
.archive a.more-link {
  color: var(--rd-brand) !important;
  border-bottom: 1px solid var(--rd-brand) !important;
  text-decoration: none !important;
}
.blog a.more-link:hover,
.archive a.more-link:hover {
  color: var(--rd-blue-dark) !important;
  border-bottom-color: var(--rd-blue-dark) !important;
}

/* =========================================================
   RD BRAND UNIFIER — replace legacy hard-coded blues
   Uses: --rd-brand, --rd-accent, --rd-blue-dark
   Paste at END of stylesheet
   ======================================================= */

/* 1) Homepage / archive cards, titles, meta, read-more */
.blog .entry-title a,
.archive .entry-title a,
.blog .site-main a,
.archive .site-main a,
.blog .entry-meta a,
.archive .entry-meta a { color: var(--rd-brand) !important; }

/* 2) “RD Article” shell, TOC, quotes */
.rd-toc__title { color: var(--rd-brand) !important; }
.rd-toc a { border-bottom: 1px dotted var(--rd-accent) !important; }
.rd-toc a:hover { color: var(--rd-brand) !important; border-bottom-style: solid !important; }

.rd-quote { border-left-color: var(--rd-brand) !important; }
.rd-quote--neutral { border-left-color: var(--rd-border) !important; }
.rd-quote--scripture { border-left-color: var(--rd-accent) !important; }
.rd-quote::before { color: var(--rd-brand) !important; }

/* 3) “Reformed-article” components */
.reformed-article .section-title {
  color: var(--rd-brand) !important;
  border-bottom: 2px solid var(--rd-accent) !important;
}

/* 4) Heidelblog / Publications list */
.rd-item { border-left: 6px solid var(--rd-brand) !important; }
.rd-pubs h2 { border-left: 6px solid var(--rd-brand) !important; }
.rd-item h3 a { color: var(--rd-brand) !important; }
.rd-item h3 a:hover { color: var(--rd-accent) !important; }

/* 5) Coffeehouse widget */
.coffeehouse-widget { border-color: var(--rd-brand) !important; }
.coffeehouse-widget h3 { color: var(--rd-brand) !important; }
.coffeehouse-widget a {
  background: var(--rd-brand) !important;
}
.coffeehouse-widget a:hover {
  background: var(--rd-blue-dark) !important; /* or var(--rd-accent) if you prefer */
}

/* 6) “Read Articles” CTA + contributors list buttons */
a.read-articles-btn {
  background: var(--rd-accent) !important;
  border-color: var(--rd-accent) !important;
  color: #fff !important;
}
a.read-articles-btn:hover {
  background: var(--rd-brand) !important;
  border-color: var(--rd-brand) !important;
}

/* 7) Manual related-posts widget links */
.manual-related-posts-with-thumbs .related-item a {
  color: var(--rd-brand) !important;
}
.manual-related-posts-with-thumbs .related-item a:hover {
  color: var(--rd-blue-dark) !important;
}

/* 8) Generic underline tint in cards/excerpts */
.blog .site-main a,
.archive .site-main a {
  text-decoration-color: currentColor !important;
}

/* === TAG CLOUD + HEIDELBLOG LINK COLOR FIX === */
.widget_tag_cloud a,
.tagcloud a {
  color: var(--rd-brand) !important;
  text-decoration: none !important;
}

.widget_tag_cloud a:hover,
.tagcloud a:hover {
  color: var(--rd-blue-dark) !important;
}

/* Heidelblog widget "Read the Articles" */
.widget_text a,
.widget_text a:visited {
  color: var(--rd-brand) !important;
}

.widget_text a:hover {
  color: var(--rd-blue-dark) !important;
}

/* === MOBILE HAMBURGER MENU ICON COLOR === */
.ast-button-wrap .menu-toggle .ast-icon,
.ast-button-wrap .menu-toggle svg {
  color: #ffffff !important;
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

/* === Coffeehouse + Heidelblog button refinement === */

/* Base button style */
.rd-button-outline,
.coffeehouse-widget a,
.widget_text a.read-articles-btn {
  display: inline-block;
  padding: 8px 18px;
  margin-top: 10px;
  border: 2px solid var(--rd-brand);
  color: var(--rd-brand);
  background-color: transparent !important;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Hover effect */
.rd-button-outline:hover,
.coffeehouse-widget a:hover,
.widget_text a.read-articles-btn:hover {
  background-color: var(--rd-brand) !important;
  color: #ffffff !important;
  border-color: var(--rd-brand);
}

/* Make sure any old solid button overrides are cleared */
.coffeehouse-widget a,
.widget_text a {
  box-shadow: none !important;
}

/* Center buttons inside widget boxes */
.coffeehouse-widget,
.widget_text {
  text-align: center;
}

/* === MOBILE MENU COLOR CORRECTION === */

/* Menu links */
.ast-mobile-header-wrap .main-header-menu .menu-item > a,
.ast-builder-menu-mobile .main-header-menu .menu-item > a {
  color: var(--rd-brand) !important;
}

/* Hover & active states */
.ast-mobile-header-wrap .main-header-menu .menu-item:hover > a,
.ast-mobile-header-wrap .main-header-menu .current-menu-item > a,
.ast-builder-menu-mobile .main-header-menu .menu-item:hover > a,
.ast-builder-menu-mobile .main-header-menu .current-menu-item > a {
  color: var(--rd-blue-dark) !important;
}

/* Ensure submenu arrows match */
.ast-mobile-header-wrap .ast-menu-toggle svg,
.ast-builder-menu-mobile .ast-menu-toggle svg {
  fill: var(--rd-brand) !important;
}

/* Keep menu background and close (X) icon white on dark header */
.ast-button-wrap .menu-toggle .ast-icon,

/* === MOBILE MENU BACKGROUND MATCH === */
.ast-mobile-popup-inner,
.ast-builder-menu-mobile .main-header-menu,
.ast-builder-menu-mobile .ast-above-header,
.ast-builder-menu-mobile .ast-below-header {
  background-color: var(--rd-blue-dark) !important;
}

/* Ensure text is legible against the dark background */
.ast-builder-menu-mobile .main-header-menu .menu-item > a {
  color: #ffffff !important;
}

.ast-builder-menu-mobile .main-header-menu .menu-item:hover > a,
.ast-builder-menu-mobile .main-header-menu .current-menu-item > a {
  color: var(--rd-accent-light, #dce6f5) !important; /* soft hover highlight */
}

/* Keep submenu arrows visible */
.ast-builder-menu-mobile .ast-menu-toggle svg {
  fill: #ffffff !important;
}

/* 1) Limit the old white-link rule to DESKTOP only */
@media (min-width: 922px) {
  .main-header-menu a { color: #fff; }
}

@media (max-width: 921px) {
  .ast-header-break-point .main-header-menu > li {
    padding-left: 62px !important;
    padding-right: 55px !important;
  }
}

@media (max-width: 921px) {
  .ast-header-break-point .main-header-menu .menu-link {
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  }
}

/* Slightly smaller pills + slightly smaller text */
@media (max-width: 921px) {
  .ast-header-break-point .main-header-menu .menu-link {
    padding: 16px 24px !important;  /* slightly reduced height */
    border-radius: 60px !important; /* matches new size */
    font-size: 21px !important;     /* down from 23px */
    margin: 14px auto !important;   /* keeps spacing balanced */
    width: 92% !important;          /* keeps left padding perfect */
  }
}

/* =========================================================
   Reformed Dogmatika Premium Search Bar — FINAL (clickable icon)
   ========================================================= */

/* Outer widget container */
.widget_search {
  padding: 12px 16px !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.10) !important;
  background: #ffffff !important;
}

/* Positioning anchor for submit button/icon */


/* Search field */
.widget_search input.search-field {
  width: 100% !important;
  padding: 16px 52px 16px 18px !important; /* room on right for icon */
  border-radius: 10px !important;

  background-color: var(--rd-blue-dark, #163D5C) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.15) !important;

  box-shadow: none !important;
  outline: none !important;
  box-sizing: border-box;
}

/* Placeholder text */
.widget_search input.search-field::placeholder {
  color: #d2dbe5 !important;
}

/* Submit button turned into a clickable icon (NO hiding) */
.widget_search input[type="submit"] {
  position: absolute !important;
  right: 18px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 28px !important;
  height: 28px !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  font-size: 0 !important; /* hide "Search" text visually, keep it for screen readers */
}

/* Icon drawn by the submit button itself */
.widget_search input[type="submit"]::before {
  content: "🔍"; /* 🔍 */
  font-size: 20px;
  color: rgba(255,255,255,0.40);
}

/* Hover/focus: brighten icon */
.widget_search input[type="submit"]:hover::before,
.widget_search input[type="submit"]:focus::before {
  color: #ffffff;
}

/* =========================================================
   Reformed Dogmatika – Slogan Widget (Cleaned)
   ========================================================= */


/* Title */
.rd-slogan-title {
  font-family: "Playfair Display", "Times New Roman", serif !important;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  color: var(--rd-brand, #1B4E74);
  margin: 10px 0 5px;
}

/* Subtitle */
.rd-slogan-text {
  font-family: "Playfair Display", "Times New Roman", serif !important;
  font-style: italic;
  font-size: 1.05rem;
  text-align: center;
  line-height: 1.5;
  color: var(--rd-brand, #1B4E74);
  margin: 0 12px 15px;
}

/* =========================================================
   Reformed Dogmatika Feature Cards (Sidebar)
   Clean • Unified • RD Palette
   ========================================================= */

/* Card wrapper */
.rd-feature-card {
  font-family: "Open Sans", Arial, sans-serif;
  max-width: 420px;
  margin: 0 auto 26px auto;
}

/* Ribbon */
.rd-feature-ribbon {
  width: 100%;
  height: 6px;
  background: var(--rd-brand, #1B4E74);
  border-radius: 2px;
}

/* Card box */
.rd-feature-box {
  background: #ffffff;
  border: 1px solid var(--rd-brand, #1B4E74);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  overflow: hidden;
}

/* Image area (background-image set inline) */
.rd-feature-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Content area */
.rd-feature-content {
  padding: 18px;
}

/* Title */
.rd-feature-title {
  margin: 0 0 8px;
  font-size: 1.22rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--rd-brand, #1B4E74);
}

/* Excerpt */
.rd-feature-excerpt {
  margin: 0;
  font-size: .95rem;
  line-height: 1.55;
  color: #2c2c2c;
}

/* CTA container */
.rd-widget-cta {
  text-align: center;
  margin: 18px 0 14px;
}

/* Read More button – unified RD style */
.rd-widget-btn,
.rd-widget-btn:link,
.rd-widget-btn:visited,
.rd-widget-btn:hover,
.rd-widget-btn:focus,
.rd-widget-btn:active {
  display: inline-block;
  padding: 8px 22px;
  border-radius: 6px;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--rd-brand, #1B4E74) !important;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.1s ease;
}

/* Normal state */
.rd-widget-btn,
.rd-widget-btn:link,
.rd-widget-btn:visited {
  background-color: #ffffff;
  color: var(--rd-brand, #1B4E74) !important;
}

/* Hover / focus */
.rd-widget-btn:hover,
.rd-widget-btn:focus {
  background-color: var(--rd-blue-dark, #163D5C) !important;
  color: #ffffff !important;
  border-color: var(--rd-blue-dark, #163D5C) !important;
}

/* Active (click) state */
.rd-widget-btn:active {
  background-color: #091f36 !important;
  color: #ffffff !important;
  border-color: #091f36 !important;
  transform: scale(0.97);
}

/* =========================================================
   OUR CONTRIBUTORS – Reformed Dogmatika Sidebar Widget
   Cleaned, Organized, Full RD Palette
   ========================================================= */

/* Card container */
.rd-contrib-widget {
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff !important;
  border: 1px solid var(--rd-brand, #1B4E74);
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  padding: 18px 18px 16px;
  margin-bottom: 22px;
}

/* Reset inner clutter safely */
.rd-contrib-widget * {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Title */
.rd-contrib-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
  color: var(--rd-brand, #1B4E74);
  font-family: "Playfair Display", "Times New Roman", serif;
}

/* Ribbon under title */
.rd-contrib-ribbon {
  width: 100%;
  height: 4px;
  background: var(--rd-brand, #1B4E74) !important;
  border-radius: 2px;
  margin: 0 0 10px;
}

/* Tagline */
.rd-contrib-tagline {
  text-align: center;
  font-size: 0.92rem;
  color: #333;
  margin: 0 0 14px;
}

/* Affiliation “chips” */
.rd-contrib-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.rd-chip {
  padding: 5px 11px;
  border-radius: 999px !important;
  font-weight: 800;
  font-size: 0.75rem;
  color: #fff;
  letter-spacing: 0.02em;
}

/* Presbytery-colored chips (kept intentionally) */
.rd-chip-urc {
  background: linear-gradient(180deg, #3aa0e6, #036bb3) !important;
}
.rd-chip-pca {
  background: linear-gradient(180deg, #45a073, #2a7c55) !important;
}
.rd-chip-opc {
  background: linear-gradient(180deg, #7c74d8, #4b3db8) !important;
}

/* Section titles (e.g., Contributors • Editors) */
.rd-contrib-section {
  margin-top: 14px !important;
}

.rd-contrib-section-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--rd-blue-dark, #163D5C);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 12px 0 10px !important;
}

/* List container */
.rd-contrib-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Contributor row */
.rd-contrib-item {
  padding: 8px 0;
  border-bottom: 1px solid #efefef;
}
.rd-contrib-item:last-child {
  border-bottom: none;
}

/* Remove global WP markers */
.rd-contrib-item::marker,
.rd-contrib-item::before,
.rd-contrib-item::after {
  display: none !important;
}

/* Link layout for each contributor */
.rd-contrib-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--rd-brand, #1B4E74) !important;
}

/* Contributor avatar */
.rd-contrib-avatar {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1px solid #d4d4d4 !important;
  box-shadow: 0 0 3px rgba(0,0,0,0.04) !important;
}

/* Contributor name */
.rd-contrib-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rd-brand, #1B4E74) !important;
}

.rd-contrib-item a:hover .rd-contrib-name {
  text-decoration: underline;
}

/* Footer link */
.rd-contrib-footer {
  margin-top: 18px;
  text-align: center;
}

.rd-contrib-footer-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--rd-brand, #1B4E74) !important;
  text-decoration: none;
}

.rd-contrib-footer-link:hover {
  text-decoration: underline;
}

/* Cancel global author-pill effects inside this widget */
.rd-contrib-widget a[href*="/author/"],
.rd-contrib-widget a[href*="/?author="],
.rd-contrib-widget a[href*="/contributors/"],
.rd-contrib-widget a[href*="/contributor/"] {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  border: none !important;
  color: var(--rd-brand, #1B4E74) !important;
}

/* =========================================================
   REFORMED QUOTE OF THE DAY WIDGET (RD Palette)
   ========================================================= */

.rd-quote-widget {
  border: 1px solid var(--rd-brand, #1B4E74);
  border-radius: 18px;
  padding: 24px 20px;
  background: #f8f9fb; /* soft cool gray – stays neutral, not yellow */
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.03);
  text-align: center;
  margin-bottom: 24px;
}

/* Heading above the rotating quote */
.rd-quote-widget-heading {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--rd-brand, #1B4E74);
  margin-bottom: 10px;
  position: relative;
}

.rd-quote-widget-heading::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background: var(--rd-brand, #1B4E74);
  margin: 10px auto 0;
}

/* Rotating quote output */
.rd-quote-shortcode {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  margin-top: 16px;
}

/* Link to Confessions page */
.rd-quote-widget-conf-link {
  margin-top: 16px;
  font-size: 0.95rem;
}

.rd-quote-widget-conf-link a {
  color: var(--rd-brand, #1B4E74);
  text-decoration: none;
  border-bottom: 1px solid rgba(27, 78, 116, 0.25);
  padding-bottom: 2px;
}

.rd-quote-widget-conf-link a:hover {
  border-bottom-color: var(--rd-brand, #1B4E74);
}

/* Hide internal title from the rotating quote shortcode */
.rd-quote-shortcode h2,
.rd-quote-shortcode h3,
.rd-quote-shortcode .quote-title {
  display: none !important;
}

/* =========================================================
   RD SUBSCRIBE WIDGET — Full RD Palette + Clean Formatting
   ========================================================= */

/* Subscribe card container */
.rd-subscribe-widget {
  background: #ffffff;
  border: 1px solid var(--rd-brand, #1B4E74);
  border-radius: 14px;
  padding: 28px 26px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-align: center;
  font-family: "Open Sans", Arial, sans-serif;
  margin-bottom: 26px;
}

/* Title */
.rd-subscribe-title {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--rd-brand, #1B4E74);
  margin-bottom: 14px !important;
  position: relative;
  padding-bottom: 6px;
}

/* RD underline under title */
.rd-subscribe-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 72%;
  height: 2px;
  background-color: var(--rd-brand, #1B4E74);
  border-radius: 999px;
}

/* Tagline + supporting text */
.rd-subscribe-tagline,
.rd-subscribe-text {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 22px !important;
  line-height: 1.45;
}

/* Jetpack email input */
.jetpack_subscription_widget input[type="email"],
.wp-block-jetpack-subscriptions input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--rd-brand, #1B4E74);
  border-radius: 6px;
  font-size: 1rem;
  font-family: "Open Sans", sans-serif;
  box-shadow: none;
}

/* Hide Jetpack's default title/description */
.widget_blog_subscription h2,
.rd-subscribe-widget .jetpack_subscription_widget .widget-title,
.rd-subscribe-widget .jetpack_subscription_widget h2,
.rd-subscribe-widget .jetpack_subscription_widget > p {
  display: none !important;
}

/* Subscribe button — RD style */
#subscribe-submit,
.jetpack_subscription_widget input[type="submit"],
.wp-block-jetpack-subscriptions input[type="submit"] {
  background: transparent !important;
  color: var(--rd-brand, #1B4E74) !important;
  border: 2px solid var(--rd-brand, #1B4E74) !important;
  padding: 14px 24px !important;
  border-radius: 10px !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  font-family: "Playfair Display", serif !important;
  width: auto !important;
  display: inline-block !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: 0.25s ease-in-out;
}

/* Hover */
#subscribe-submit:hover,
.jetpack_subscription_widget input[type="submit"]:hover,
.wp-block-jetpack-subscriptions input[type="submit"]:hover {
  background: var(--rd-brand, #1B4E74) !important;
  color: #ffffff !important;
  border-color: var(--rd-brand, #1B4E74) !important;
}

/* ===============================
   RD Categories Widget Styling (RD Palette)
   =============================== */

/* Widget container */
.widget_categories {
  background: #ffffff;
  border: 1px solid var(--rd-brand, #1B4E74);
  border-radius: 18px;
  padding: 20px 18px 22px;
  box-shadow: 0 4px 10px rgba(18, 54, 94, 0.08);
  font-family: "Playfair Display", serif;
  margin-bottom: 24px;
}

/* Title */
.widget_categories h2 {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--rd-brand, #1B4E74);
  margin-bottom: 12px;
  position: relative;
}

.widget_categories h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 2px;
  background: var(--rd-brand, #1B4E74);
  margin: 8px auto 0;
}

/* Dropdown styling (with RD arrow) */
.widget_categories select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rd-brand, #1B4E74) !important;
  border-radius: 8px;
  background: #ffffff;
  font-size: 1rem;
  color: var(--rd-brand, #1B4E74) !important;
  font-family: "Open Sans", sans-serif;
  box-shadow: none;
  appearance: none;
  cursor: pointer;

  /* Arrow (browser-safe trick) */
  background-image:
    linear-gradient(45deg, transparent 50%, var(--rd-brand, #1B4E74) 50%),
    linear-gradient(135deg, var(--rd-brand, #1B4E74) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% + 3px),
    calc(100% - 13px) calc(50% + 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* Hover / Focus */
.widget_categories select:focus,
.widget_categories select:hover {
  border-color: var(--rd-accent, #286292) !important;
  box-shadow: 0 0 6px rgba(40, 98, 146, 0.25);
}

/* =========================================================
   Reformed Dogmatika Style — RDS2
   Long-Form Theology & Essay Layout (Stanzas, Dropcaps, Scripture)
   ========================================================= */

/* Stanzas: paragraph rhythm + spacing */
.stanza {
  margin-bottom: 2.2rem;
}

.stanza p + p {
  margin-top: 0.75rem;
}

/* Soft section dividers */
hr.soft {
  border: 0;
  border-top: 1px solid #ddd;
  width: 60%;
  margin: 2.75rem auto;
}

/* Drop cap (manual .dropcap class) */
.dropcap::first-letter {
  float: left;
  font-size: 3.5rem;
  line-height: 1;
  padding-right: 8px;
  padding-top: 4px;
  font-weight: 700;
}

/* Pull quote styling */
.pullquote {
  font-style: italic;
  text-align: center;
  margin: 2rem auto;
  font-size: 1.25rem;
  color: #444;
}

/* Centered Scripture layout */
.scripture {
  text-align: center;
  font-style: italic;
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
  font-size: 1.2rem;
}

/* Tighten space between Astra meta area and first paragraph */
.single-post .ast-single-post-content,
.single-post .post-content,
.single-post .entry-content,
.ast-article-single .entry-content,
.ast-single-post .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Remove extra margin from the first paragraph specifically */
.single-post .ast-single-post-content > p:first-of-type,
.single-post .post-content > p:first-of-type,
.single-post .entry-content > p:first-of-type {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Reduce desktop spacing under the post title/meta area */
@media (min-width: 769px) {
  .single-post .entry-header {
    margin-bottom: 1rem !important;
  }
}

/* =========================================================
   REFORMED DOGMATIKA – SINGLE POST LAYOUT & TYPOGRAPHY
   Titles • Headings • Body • Blockquotes • Author Box
   ========================================================= */

/* 1. Single-post column width (desktop) */
@media (min-width: 922px) {

  /* Main Astra container */
  body.single-post .ast-container {
    max-width: 1240px !important;
  }

  /* Article column width (Modern Reformation feel) */
  body.single-post .rd-article,
  body.single-post .rd-essay,
  body.single-post .reformed-article,
  body.single-post .entry-content {
    max-width: 880px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* 2. Article title (single post only) */
body.single-post .entry-title,
body.single-post .rd-article__header h1,
body.single-post .rd-essay .entry-title,
body.single-post .reformed-article h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem) !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  color: #1B4E74 !important;
  font-weight: 700;
}

/* 3. Headings inside the article */
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4,
.single-post .entry-content h5 {
  color: #1B4E74 !important;
  font-weight: 700;
  line-height: 1.25;
}

.single-post .entry-content h2 { font-size: 1.85rem; }
.single-post .entry-content h3 { font-size: 1.5rem; }
.single-post .entry-content h4 { font-size: 1.3rem; }

/* 4. Body text and paragraph rhythm */
.single-post .entry-content {
  font-size: 1.125rem;
  line-height: 1.7;
}

.single-post .entry-content p {
  margin-bottom: 1.25em;
}

/* 5. Blockquotes (single post) */
.single-post .entry-content blockquote {
  margin: 1.5rem 0;
  padding: 1.1rem 1.4rem 1.2rem 1.6rem;
  border-left: 3px solid #1B4E74;
  background: #f9fbfd;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 720px;
}

/* 6. Automatic drop cap for first paragraph */
body.single-post .entry-content > p:first-of-type::first-letter {
  float: left;
  font-size: 3.5rem;
  line-height: 1;
  padding-right: 8px;
  padding-top: 4px;
  font-weight: 700;
  color: var(--rd-brand);
}

/* 7. Author box container and bio text */
.single-post .ast-author-box {
  max-width: 820px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 1rem;
}

.single-post .ast-author-box .ast-author-bio,
.single-post .ast-author-box .author-bio,
.single-post .ast-author-box p {
  max-width: none !important;
  width: 100% !important;
  line-height: 1.65;
}

/* 8. Author pill styling (name/title) */
.single-post .ast-author-box .author-name,
.single-post .ast-author-box .author-name a,
.single-post .ast-author-box .author-title,
.single-post .ast-author-box .author-title a {
  display: inline-block !important;
  padding: 0.32rem 1.6rem !important;
  font-size: 0.95rem !important;
  line-height: 1 !important;
  border-radius: 999px !important;
  background-color: #1B4E74 !important;
  color: #ffffff !important;
}

/* 9. Homepage & archive titles (non-single-post) */

/* Base shared styling (color, weight, line-height) */
.blog .site-main h2.entry-title a,
.archive .site-main h2.entry-title a,
.home .entry-title,
.page .entry-title {
  font-weight: 700 !important;
  line-height: 1.18 !important;
  color: var(--rd-brand) !important;
  letter-spacing: 0.01em;
}

/* Mobile & small tablets – smaller archive/main titles */
@media (max-width: 768px) {
  .blog .site-main h2.entry-title a,
  .archive .site-main h2.entry-title a {
    font-size: 1.35rem !important; /* adjust to 1.3–1.5 as you prefer */
  }
}

/* Desktop – keep the big, elegant archive titles */
@media (min-width: 769px) {
  .blog .site-main h2.entry-title a,
  .archive .site-main h2.entry-title a {
    font-size: clamp(1.9rem, 1.6vw + 1.2rem, 2.6rem) !important;
  }
}

/* Make search form icon area clickable */


.rd-search-clickzone {
    position: absolute;
    right: 0;
    top: 0;
    width: 45px;        /* width of clickable icon area */
    height: 100%;
    cursor: pointer;
    z-index: 20;        /* sits above the ::after icon */
    background: transparent;
}

/* ===========================================
   FIX & STYLE: "Guidelines For Writing" page
   URL: /guidelines-vision-writing/
   =========================================== */

/* Center header area for this page only */
body[class*="guidelines-vision-writing"] .entry-header {
  text-align: center;
}

/* Page title fixes (matches RD post feel) */
body[class*="guidelines-vision-writing"] .entry-title {
  font-size: 2.4rem !important;
  line-height: 1.25 !important;
  margin: 1.75rem auto 1.25rem !important;
  max-width: 900px;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  letter-spacing: 0.02em;
  text-shadow: none !important;
  transform: none !important;
  position: static !important;
  overflow: visible !important;
}

/* Make sure the first paragraph doesn't collide with the title */
body[class*="guidelines-vision-writing"] .entry-content > p:first-of-type {
  margin-top: 0.75rem !important;
}

/* -------------------------------------------
   RD-style layout & section headings
   ------------------------------------------- */

/* Match the comfy RD article width */
body[class*="guidelines-vision-writing"] .site-content .ast-container {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Gentle inner padding like your posts */
body[class*="guidelines-vision-writing"] .entry-content {
  padding: 0 1.25rem 3rem;
}

/* Section headings (About Us, Mission Statement, etc.)
   in classic RD colors and style */
body[class*="guidelines-vision-writing"] .entry-content h2 {
  color: var(--rd-brand);
  text-align: center;
  font-size: 1.9rem;
  line-height: 1.3;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

/* Little RD-style accent line under each section heading */
body[class*="guidelines-vision-writing"] .entry-content h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin: 0.6rem auto 0;
  background-color: var(--rd-accent);
}
/* ===========================================
   RD Styling: Guidelines For Writing Page
   =========================================== */

/* Target THIS page specifically */
body.page-id-3031 .entry-content,
body.page-id-3031 .ast-container {
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 0 1.25rem !important;
}

/* Main Title */
body.page-id-3031 h1.entry-title {
  color: var(--rd-brand) !important;
  text-align: center !important;
  font-size: 2.4rem !important;
  line-height: 1.25 !important;
  margin-top: 2rem !important;
}

/* Subheadings on this page */
body.page-id-3031 h2 {
  color: var(--rd-brand) !important;
  text-align: center !important;
  font-size: 1.9rem !important;
  margin-top: 3rem !important;
  margin-bottom: 1rem !important;
}

/* Accent line beneath subheadings */
body.page-id-3031 h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 2px;
  background: var(--rd-accent) !important;
  margin: 0.6rem auto 0;
}

/* ===========================================
   Standardize page width to RD article width
   Matches American Huguenot post layout
   =========================================== */

.page .site-content .ast-container,
.page .entry-content {
  max-width: 780px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}

/* ===========================================
   Reformed Dogmatika • Page Typography Match
   Makes pages match single-post typography
   =========================================== */

/* Match page paragraphs to blog post rhythm */
.page .entry-content p {
  font-size: 1.1rem !important;
  line-height: 1.6 !important;     /* Same as your articles */
  margin-bottom: 1.15rem !important;
}

/* Match page headings to article headings */
.page .entry-content h2 {
  font-size: 1.9rem !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  margin-top: 3rem !important;
  margin-bottom: 1rem !important;
  color: var(--rd-brand) !important;
}

/* Keep the RD accent line under page h2 */
.page .entry-content h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  background-color: var(--rd-accent);
  margin: 0.6rem auto 0;
}

/* Remove blue underline from H2 only on the About page */
body.page-id-1562 h2::after {
  display: none !important;
}

/* ABOUT PAGE: match Wicres section style */
body.page-id-1562 .entry-content {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* Heading like "Wicres Under Pressure" */
body.page-id-1562 .entry-content h2:first-of-type {
  font-size: 2.25rem;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
  color: var(--rd-brand);
  margin: 3rem 0 1.5rem;
}

/* Paragraph rhythm to match articles */
body.page-id-1562 .entry-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.15rem;
}

/* Make sure no blue underline appears on this h2 */
body.page-id-1562 .entry-content h2:first-of-type::after {
  display: none !important;
}

/* MISSION STATEMENT PAGE: match Wicres/About styling */
body.page-id-1564 .entry-content {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* Heading like "Wicres Under Pressure" */
body.page-id-1564 .entry-content h2:first-of-type {
  font-size: 2.25rem;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
  color: var(--rd-brand);
  margin: 3rem 0 1.5rem;
}

/* Paragraph rhythm to match articles */
body.page-id-1564 .entry-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.15rem;
}

/* No blue underline on this h2 */
body.page-id-1564 .entry-content h2:first-of-type::after {
  display: none !important;
}

/* RD – Hide Astra default title on Reformed Confessions page (ID 2180) */
body.page-id-2180 .entry-title,
body.page-id-2180 .entry-header {
  display: none !important;
}

/* RD – Remove overlapping default title on Reformed Confessions / church-confessions page */
body.page-id-2180 .entry-title,
body.page-id-2180 .entry-header,
body.page-church-confessions .entry-title,
body.page-church-confessions .entry-header,
body[class*="church-confessions"] .entry-title,
body[class*="church-confessions"] .ast-archive-title,
body[class*="church-confessions"] .ast-archive-description {
  display: none !important;
}

/* RD – Style title on Reformed Confessions page (ID 2180) */
body.page-id-2180 .entry-title {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 30px;
  font-size: 2.25rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--rd-brand);
}

/* Optional: remove Astra underline under this title */
body.page-id-2180 .entry-title::after {
  display: none !important;
}

/* RD • Loosen typography on author pages */
body.author .site-main,
body.author .site-content,
body.author .entry-content,
body.author .wp-block-group {
  max-width: 780px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* More breathing room in bio text */
body.author p {
  line-height: 1.8 !important;
}

/* RD – Make "Our Contributors" page full width */
body.page-id-10758 .ast-container,
body.page-id-10758 .site-content,
body.page-id-10758 .content-area,
body.page-id-10758 .site-main,
body.page-id-10758 .entry-content {
  max-width: 1500px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 40px !important;
  padding-right: 40px !important;
}

/* RD – Make "Our Contributors" page match author-page width */
body.page-our-contributors .ast-container,
body.page-our-contributors .site-content,
body.page-our-contributors .content-area,
body.page-our-contributors .site-main,
body.page-our-contributors .entry-content,
body.page-our-contributors .contributors-page {
  max-width: 1400px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 40px !important;
  padding-right: 40px !important;
}

/* RD – Widen ONLY the "Our Contributors" page (ID 10758) */
.page.page-id-10758 .site-content .ast-container,
.page.page-id-10758 .entry-content,
.page.page-id-10758 .contributors-page {
  max-width: 1500px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 40px !important;
  padding-right: 40px !important;
}

/* ===== RD Mobile Contributors Fix — FINAL (11/27/25) ===== */

/* Base contributors page layout (desktop + tablet) */
.contributors-page {
  max-width: 760px;
  margin: 0 auto;
}

/* Mobile fixes */
@media (max-width: 768px) {

  /* Make the page full-width on phones */
  .contributors-page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
  }

  /* Reset any weird writing / stacking behaviors */
  .contributors-page *,
  .contributors-page h2,
  .contributors-page p,
  .contributors-page div,
  .contributors-page article {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: normal !important;
    transform: none !important;
  }

  /* Make all content blocks full-width so text doesn't go vertical */
  .contributors-page article,
  .contributors-page article > *,
  .contributors-page p,
  .contributors-page div {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Heading style on mobile */
  .contributors-page h2 {
    width: 100% !important;
    text-align: left !important;
    font-size: 1.4rem !important;
    margin-bottom: 1rem !important;
  }

  /* Contributor cards */
  .contributors-page article {
    text-align: center !important;
    padding: 20px 0 !important;
  }

  /* Contributor images */
  .contributors-page article img {
    display: block !important;
    max-width: 150px !important;
    height: auto !important;
    margin: 0 auto 16px !important;
  }
}

/* RD — Fix mobile layout on "Our Contributors" page */
@media (max-width: 768px) {

  /* Let the content use the full mobile width */
  body.page-id-10758 .ast-container,
  body.page-id-10758 .site-content,
  body.page-id-10758 .content-area,
  body.page-id-10758 .site-main,
  body.page-id-10758 .entry-content,
  body.page-id-10758 .contributors-page {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Make sure headings and paragraphs don't stack vertically */
  body.page-id-10758 .contributors-page h2,
  body.page-id-10758 .contributors-page p {
    writing-mode: horizontal-tb !important;
    white-space: normal !important;
    word-break: normal !important;
  }
}

/* RD – Reset / refine AUTHOR page layout */
body.author .ast-container,
body.author .site-container,
body.author .content-area,
body.author .site-main {
  max-width: 1200px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* Keep the main author text at a readable width */
body.author .entry-content,
body.author .wp-block-group {
  max-width: 720px !important;
  margin-left: 0 !important;
}

/* Normal paragraph feel on author bios */
body.author p {
  line-height: 1.7 !important;
}

/* Fix author name crunching */
body.author h1.entry-title,
body.author .page-title {
  font-size: 2.4rem !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  margin-bottom: 18px !important;
}

/* Make sure sidebar widgets (like the vertical RD badge) have room */
body.author .sidebar-main,
body.author .secondary,
body.author .widget-area {
  max-width: 320px !important;
  width: auto !important;
}

/* ============================================
   RD FIX — MOBILE ARCHIVE TITLES RESTORED
   ============================================ */
@media (max-width: 768px) {
  .blog .entry-title,
  .archive .entry-title {
    font-size: 22px !important;
    line-height: 1.25 !important;
    text-align: left !important; /* or center if you prefer */
    margin-bottom: 10px !important;
  }
}

/* ================================================
   RD – Our Contributors page mobile fix (page-id-10758)
   Force full-width text and blocks on phones
   ================================================ */
@media (max-width: 768px) {

  /* Make *every* paragraph on this page full-width */
  body.page-id-10758 p {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    writing-mode: horizontal-tb !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    text-align: center !important;
  }

  /* Make any Gutenberg groups/columns on this page full-width too */
  body.page-id-10758 .wp-block-group,
  body.page-id-10758 .wp-block-group__inner-container,
  body.page-id-10758 .wp-block-columns,
  body.page-id-10758 .wp-block-column {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ================================================
   RD – FINAL mobile fix for "Our Contributors" page
   Force full-width content and horizontal text
   ================================================ */
@media (max-width: 768px) {

  /* Make the whole page content full-width on phones */
  body.page-our-contributors .entry-content {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Every direct child block inside the page content */
  body.page-our-contributors .entry-content > * {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Every paragraph inside the page content */
  body.page-our-contributors .entry-content p {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    writing-mode: horizontal-tb !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    text-align: center !important;
  }
}

/* ============================================
   RD – Contributors tagline layout
   ============================================ */

.contributors-tagline {
  display: block;
  max-width: 32rem;
  margin: 1.5rem auto 0.9rem auto;
  text-align: center;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
}

/* Make absolutely sure it behaves on phones */
@media (max-width: 768px) {
  .contributors-tagline {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
}

/* Official Astra fix for mobile usability issues (narrow/stacked content) */
:where(body, iframe, pre, img, svg, video, canvas, select) {
  max-width: 100%;
  overflow: auto;
  word-break: break-word;
}

/* RD – Perfect mobile styling for contributor cards (stack vertically, center, add space) */
@media (max-width: 768px) {
  .contributors-page article {
    flex-direction: column !important; /* Stack image above text */
    align-items: center !important;   /* Center image and text */
    text-align: center !important;    /* Center text */
    padding: 16px !important;         /* Lighter padding for mobile */
    gap: 12px !important;             /* Space between image and text */
    margin-bottom: 24px !important;   /* Space between cards */
  }

  .contributors-page article div {
    width: 100% !important;           /* Full-width text */
  }

  .contributors-page article h3 {
    font-size: 1.3em !important;      /* Balanced heading size */
    margin-bottom: 8px !important;
  }

  .contributors-page article p {
    font-size: 0.95em !important;     /* Readable text */
    line-height: 1.6 !important;
    margin: 0 !important;
  }

  /* Adjust guest card if needed (different gap) */
  .contributors-page article[style*="gap: 26px"] {
    gap: 12px !important;
  }

  /* Ensure intro text isn't cramped */
  .contributors-page p:not(article p) {
    font-size: 0.95em !important;
    line-height: 1.6 !important;
    margin-bottom: 16px !important;
  }
}

/* ============================================
   RD – Contributors tagline layout
   ============================================ */

/* Make absolutely sure tagline behaves on phones */
@media (max-width: 768px) {
}

/* ====================================================
   RD – Global Astra/mobile safety for narrow content
   ==================================================== */

/* Stack contributors cards nicely on tablets/phones */
@media (max-width: 921px) {
  .contributors-page article {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important; /* names stay centered */
  }
}

/* =====================================================
   RD – FINAL Mobile Styling for Contributor Bio Cards
   Wider text, left-aligned bios, clean spacing
   ===================================================== */
@media (max-width: 768px) {

  /* Loosen outer padding so cards can breathe */
  .contributors-page {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  /* Full-width bio cards with gentle inner padding */
  .contributors-page article {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 16px 8px !important;   /* 8px side padding = longer line length */
    gap: 12px !important;
    margin-bottom: 24px !important;
  }

  /* Avatar sizing + centering */
  .contributors-page article img {
    width: 140px !important;
    height: 140px !important;
    margin: 0 auto !important;
  }

  /* Text container full-width inside each card */

  /* LEFT-ALIGN all bio content for readability */
  .contributors-page article p,
  .contributors-page article div,
  .contributors-page article span {
    text-align: left !important;
  }

  /* Bio paragraph styling */
  .contributors-page article p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  /* Space only BETWEEN paragraphs, not above the first */
  .contributors-page article p + p {
    margin-top: 0.8em !important;
  }
}
/* Remove blue underline under H2 on pages */
.page h2::after,
.page .entry-content h2::after {
    content: none !important;
    border: none !important;
    display: none !important;
}

/* ===============================
   REFORMED DOGMATIKA — HOUSE STYLE
   Site-Wide Standards for Titles, Headings, Text
   =============================== */

/* Title on single pages & posts */
.single .entry-title,
.page .entry-title {
    font-family: "Merriweather", Georgia, "Times New Roman", serif;
    font-size: 3rem !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #1B4E74 !important;
    margin-top: 50px !important;
    margin-bottom: 40px !important;
}

/* Subheadings (H2) */
.entry-content h2 {
    font-family: "Merriweather", Georgia, "Times New Roman", serif;
    font-size: 2rem !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    color: #1B4E74 !important;
    margin-top: 60px !important;
    margin-bottom: 20px !important;
    text-align: left !important;
}

/* Remove Astra blue underline under H2s */
.entry-content h2::after {
    content: none !important;
    display: none !important;
}

/* Paragraph text improvements — keep default site font */
.entry-content p {
    font-size: 1.15rem;
    line-height: 1.75;
    margin-bottom: 22px;
}

/* Lists matching RD tone */
.entry-content ul li,
.entry-content ol li {
    margin-bottom: 12px;
    font-size: 1.15rem;
    line-height: 1.65;
}

/* ✠ closing mark uniform standard */
.rd-closer {
    text-align: center !important;
    font-size: 2rem !important;
    color: #163D5C !important;
    margin: 60px 0 20px !important;
}

/* RD Contributors Widget – remove bullets & align items */
.rd-contrib-widget .rd-contrib-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.rd-contrib-widget .rd-contrib-list li {
    list-style: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    display: flex;
    align-items: center;
}

/* Extra safety for Safari / markers */
.rd-contrib-widget .rd-contrib-list li::marker {
    content: "" !important;
}

/* =========================================
   RD UNIVERSAL PAGE TITLE
   (Use class="rd-page-title" in page content)
   ========================================= */

.rd-page-title {
  text-align: center;
  font-size: 2.9rem;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--rd-brand, #1B4E74);
  margin: 40px auto 55px;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
  .rd-page-title {
    font-size: 2.3rem;
    margin: 35px auto 45px;
    padding: 0 6%;
  }
}

/* Phone adjustments */
@media (max-width: 600px) {
  .rd-page-title {
    font-size: 2.0rem;
    margin: 30px auto 40px;
    padding: 0 8%;
  }
}

/* =========================================
   RD STATIC PAGE TYPOGRAPHY
   (Keeps pages consistent without touching posts)
   ========================================= */

.page .entry-content > h2 {
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 42px 0 18px;
  color: var(--rd-brand, #1B4E74);
  font-weight: 700;
}

/* Slightly smaller H2 on phones */
@media (max-width: 600px) {
  .page .entry-content > h2 {
    font-size: 1.7rem;
    margin: 34px 0 14px;
  }
}

/* Page body text rhythm */
.page .entry-content p {
  margin-bottom: 1.05em;
}

/* Page lists */
.page .entry-content ul,
.page .entry-content ol {
  margin: 0 0 1.3em 1.3em;
}

/* Optional: a touch more breathing room above first H2
   when it follows the hero title */
.page .entry-content .rd-page-title + h2 {
  margin-top: 10px;
}

/* RD Mobile Title Refinement — Gold Standard */
@media (max-width: 768px) {
  .entry-title {
    font-size: 1.33rem !important;
    line-height: 1.25 !important;
  }
}

/* RD Author Name Size — Subtle Enhancement */
@media (max-width: 768px) {
  .entry-meta,
  .entry-meta a {
    font-size: 0.97rem !important;
  }
}

/* RD Title Spacing Polishing */
@media (max-width: 768px) {
  .entry-title {
    margin-top: 35px !important;
    margin-bottom: 20px !important;
  }
}

/* RD Recommended Articles – size and readability upgrade */
.rd-recommended-articles {
  max-width: 640px;
  margin: 40px auto 70px;
}

/* Thumbnails a bit larger and more luxurious */
.rd-recommended-articles img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 4px;
}

/* Article titles slightly larger for gold-standard readability */
.rd-recommended-articles a {
  font-size: 1.02rem;
  line-height: 1.45;
}

/* A little extra breathing room between items */
.rd-recommended-articles td,
.rd-recommended-articles li {
  padding-top: 6px;
  padding-bottom: 6px;
}

/* Gentle bump on very large desktops */
@media (min-width: 1200px) {
  .rd-recommended-articles {
    max-width: 680px;
  }

  .rd-recommended-articles img {
    width: 96px;
    height: 96px;
  }

  .rd-recommended-articles a {
    font-size: 1.06rem;
  }
}

/* =========================================================
   RD Recommended Articles – Gold Standard Upgrade
   Works with the content-hook structure you provided
   ========================================================= */

/* Outer container: make it wider, balanced, and premium */
.manual-related-posts-with-thumbs {
  max-width: 680px;
  margin: 50px auto 80px;
  padding: 32px 36px;
  background: #f8f9fb;
  border: 1px solid #d8e3ed;
  border-radius: 8px;
}

/* Section title */
.manual-related-posts-with-thumbs h3 {
  font-size: 1.45rem;
  margin-bottom: 18px;
  color: #1B4E74;
  font-weight: 700;
  text-align: left;
}

/* Each related item: spacing + alignment */
.manual-related-posts-with-thumbs .related-item {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

/* Larger thumbnails for industry-standard readability */
.manual-related-posts-with-thumbs img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
}

/* Titles slightly larger & more luxurious */
.manual-related-posts-with-thumbs a {
  font-size: 1.06rem;
  line-height: 1.45;
  color: #1B4E74;
  font-weight: 500;
  text-decoration: none;
}

.manual-related-posts-with-thumbs a:hover {
  text-decoration: underline;
}

/* Extra breathing room on very large desktops */
@media (min-width: 1200px) {
  .manual-related-posts-with-thumbs {
    max-width: 720px;
  }

  .manual-related-posts-with-thumbs img {
    width: 104px;
    height: 104px;
  }

  .manual-related-posts-with-thumbs a {
    font-size: 1.10rem;
  }
}

/* ===== RD Header – desktop micro-polish ===== */
@media (min-width: 921px) {

  /* Add a little extra breathing room beneath the header */
  .site-header,
  .main-header-bar {
    padding-bottom: 22px;
  }

  /* Slightly larger, more confident nav links */
  .main-header-menu .menu-item > a {
    font-size: 0.98rem;
    letter-spacing: 0.03em;
  }
}

/* ===== RD Header – nav link enlargement v2 ===== */
@media (min-width: 921px) {

  /* Increase nav link size slightly for premium readability */
  .main-header-menu .menu-item > a {
    font-size: 1.03rem;
    letter-spacing: 0.035em;
  }

  /* Add a little more air beneath the header for visual balance */
  .site-header,
  .main-header-bar {
    padding-bottom: 28px;
  }
}

/* ===== RD Sidebar – unified card rhythm ===== */
@media (min-width: 921px) {

  /* Normalize internal padding for all sidebar widgets */
  .widget {
    padding: 22px 20px 26px 20px !important;
  }

  /* Unify border radius and shadow for all cards */
  .widget {
    border-radius: 10px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
  }

  /* Make widget titles consistent in margin and spacing */
  .widget h2,
  .widget-title {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
  }

  /* Unify bottom spacing between widgets */
  #secondary .widget {
    margin-bottom: 28px !important;
  }

}

/* ===== RD Sidebar – Archives dropdown styling ===== */

/* Make the Archives dropdown look like a refined RD control */


/* Keep label/title nicely spaced from the dropdown */
.widget_archive h2,
.widget_archive .widget-title {
  margin-bottom: 14px !important;
}

/* RD Sidebar — Improved Vertical Spacing Between Widgets */
#secondary .widget {
    margin-bottom: 32px !important; /* previously ~20px — now more elegant */
}

/* RD Sidebar – lighter border + subtle lift on hover */
#secondary .widget {
    border: 1px solid #dde6f2 !important;          /* lighter border */
    border-radius: 10px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03) !important; /* faint base shadow */
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#secondary .widget:hover {
    border-color: #c39a48 !important;              /* soft gold edge on hover */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important; /* gentle lift */
    transform: translateY(-1px);
}

/* RD Sidebar – Categories dropdown styling to match Archives */
.widget_categories select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #c5d3e2;
    background-color: #f8f9fb;
    font-size: 0.95rem;
    color: #1B4E74;
    font-family: inherit;
}

.widget_categories h2,
.widget_categories .widget-title {
    margin-bottom: 14px !important;
}

/* RD Sidebar – extra spacing below Categories widget */
#secondary .widget_categories {
    margin-bottom: 42px !important;  /* 10px more than the base 32px */
}

/* RD Sidebar – refined tag cloud pills */
.widget_tag_cloud .tagcloud {
    margin-top: 6px;
    line-height: 1.6;
}

.widget_tag_cloud .tagcloud a {
    display: inline-block;
    padding: 4px 10px;
    margin: 4px 6px 0 0;
    border-radius: 999px;
    border: 1px solid #dde6f2;
    background-color: #f8f9fb;
    font-size: 0.80rem !important;
    font-weight: 500;
    color: #1B4E74;
    text-decoration: none;
}

.widget_tag_cloud .tagcloud a:hover {
    border-color: #c39a48;
    background-color: #ffffff;
    text-decoration: none;
}

/* RD Sidebar – nicer text widgets (incl. Quote of the Day) */
#secondary .widget .textwidget {
    line-height: 1.6;
}

#secondary .widget .textwidget p {
    margin-bottom: 0.75em;
}

#secondary .widget .textwidget p:last-child {
    margin-bottom: 0;  /* no awkward extra gap at the bottom */
}

/* ============================
   RD Subscribe Section (Universal Block)
   ============================ */

.rd-subscribe-section {
  text-align: center;
  margin: 3rem auto 2rem;
  max-width: 720px;
}

.rd-subscribe-section hr {
  margin: 3rem auto;
  width: 70%;
  border: 0;
  border-top: 1px solid #d0d0d0;
}

.rd-subscribe-title {
  font-family: "Merriweather", serif;
  font-size: 1.9rem;
  line-height: 1.15;
  color: #1b4e74;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
  text-align: center;
  white-space: nowrap;
}

.rd-subscribe-text {
  font-size: 1.1rem;
  color: #444;
  max-width: 520px;
  margin: 0 auto 1.75rem;
  line-height: 1.55;
}

.rd-subscribe-button {
  display: inline-block;
  background-color: #1b4e74;
  color: #fff;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background-color 0.2s;
}

.rd-subscribe-button:hover {
  background-color: #163e5c;
}

.rd-subscribe-cross {
  font-size: 1.8rem;
  color: #163d5c;
  margin: 28px 0 0;
}

/* Mobile refinements */
@media (max-width: 600px) {
  .rd-subscribe-title {
    font-size: 1.7rem;
  }
  .rd-subscribe-text {
    font-size: 1rem;
    padding: 0 1rem;
  }
  .rd-subscribe-button {
    width: 100%;
    max-width: 260px;
  }
}

/* ============================
   RD Homepage Slogan
   ============================ */

.rd-slogan {
  text-align: center;
  font-size: 1.25rem;
  font-style: italic;
  color: #4a5568;
  letter-spacing: 0.02em;
  margin: 28px auto 36px;
  width: 100%;
  display: block;
}

/* RD Slogan — Mobile Gold Standard */
@media (max-width: 768px) {
  .rd-slogan {
    font-size: 0.95rem;
    line-height: 1.22;
    padding: 2px 6px;
    margin: 10px auto 14px;
  }
}

/* ============================
   RD – Quote of the Day: Fade-in
   ============================ */

.rd-quote-widget {
  opacity: 0;
  transform: translateY(8px);
  animation: rd-quote-fade-in 700ms ease-out forwards;
  animation-delay: 0.15s;
  margin-bottom: 10px; /* slight breathing room under the card */
}

@keyframes rd-quote-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hide the extra "Show Another Quote" button from the quote plugin everywhere */
.randomquote-button,
.reformed-quote-button,
.randomquote-refresh,
button.randomquote-refresh,
button.randomquote-button,
button.reformed-quote-button,
input.randomquote-button,
input.randomquote-refresh,
input.reformed-quote-button {
    display: none !important;
}

/* RD: hide Astra title only on Heidelblog Contributions page (ID 11223) */
.page-id-11223 .entry-header,
.page-id-11223 .ast-archive-title,
.page-id-11223 .ast-page-title,
.page-id-11223 .entry-title {
  display: none !important;
}

.rd-quote-widget {
  margin-bottom: 32px;
}

.rd-quote-header img {
  margin-bottom: 16px;
}

.rd-quote-shortcode {
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 4px 12px 4px;
}

.rd-quote-widget-conf-link a {
  color: #1b4e74;
  font-weight: 500;
}

/* GLOBAL: Wider content layout across all pages */

.site-content .content-area,
.entry-content {
  max-width: 1100px !important;  /* ideal reading width */
  margin-left: auto;
  margin-right: auto;
}

/* GLOBAL: Wider content layout across all pages */
.site-content .ast-container {
  max-width: 1300px !important;   /* widen the overall site canvas */
  padding-left: 30px;
  padding-right: 30px;
}

.site-content .content-area,
.site-content .entry-content,
.page .entry-content,
.single .entry-content {
  max-width: 1100px;              /* generous reading width */
  margin-left: auto;
  margin-right: auto;
}

/* Reformed Confessions page — hero image slightly narrower than text */
.page-id-2180 .entry-content img:first-of-type {
  max-width: 80% !important;   /* adjust here: 75%, 80%, 85% as you prefer */
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* ----------------------------------------------------
   REFORMED DOGMATIKA — ARCHIVES WIDGET (FINAL)
   Clean banner-only image + RD styling
----------------------------------------------------- */

/* Outer card container */
.widget_archive {
    background: #ffffff;
    border: 1px solid #e6eef4;
    border-radius: 14px;
    padding: 0 26px 28px; /* no top padding—banner hugs the top */
    margin: 0 0 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
}

/* Banner inserted above widget content */
.widget_archive::before {
    content: "";
    display: block;
    height: 180px;
    border-radius: 10px;
    margin-bottom: 0.35rem;

    background-image: url("https://reformeddogmatika.com/wp-content/uploads/2025/12/img_8961.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hide the default Astra widget title */
.widget_archive .widget-title,
.widget_archive h2 {
    font-size: 0 !important;
    line-height: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}

.widget_archive .widget-title::before,
.widget_archive h2::before {
    content: none !important;
}

/* RD Styled Dropdown */
.widget_archive select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d3dfe8;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 1.05rem;
    font-family: "Merriweather", serif;
    color: #1b4e74;
    appearance: none;
    cursor: pointer;

    background-image: url("data:image/svg+xml,%3Csvg fill='%231b4e74' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.516 7.548a.625.625 0 0 1 .884 0L10 11.152l3.6-3.604a.625.625 0 1 1 .884.884l-4.042 4.042a.625.625 0 0 1-.884 0L5.516 8.432a.625.625 0 0 1 0-.884z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.widget_archive select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(27, 78, 116, 0.25);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .widget_archive {
        padding: 0 20px 26px;
    }
    .widget_archive::before {
        height: 140px;
    }
}

/* Remove ALL internal widget spacing Astra injects */
.widget_archive > * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove extra margin/padding from nested div wrappers */
.widget_archive > div,
.widget_archive > ul,
.widget_archive form,
.widget_archive form > * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Tightest possible spacing between RD banner and dropdown */
.widget_archive::before {
    margin-bottom: 0.15rem !important;  /* extremely snug but still elegant */
}

/* Remove ANY top padding the card might inherit */
.widget_archive {
    padding-top: 0 !important;
}

/* ----------------------------------------------------
   REFORMED DOGMATIKA — SIDEBAR SEARCH WIDGET (CARD)
   Styles the default WordPress "Search" widget
----------------------------------------------------- */

/* --- Outer card container --- */
.widget_search {
    background: #ffffff;
    border: 1px solid #e6eef4;
    border-radius: 14px;
    padding: 20px 22px 22px;
    margin: 0 0 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
}

/* --- Title styling (e.g., "Search Reformed Dogmatika") --- */
.widget_search .widget-title {
    font-family: "Merriweather", Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 14px;
    color: #12324a;
}

/* Optional: tiny underline accent under the title */
.widget_search .widget-title::after {
    content: "";
    display: block;
    width: 36px;
    height: 2px;
    margin: 8px auto 0;
    background: #1b4e74;   /* RD blue */
    border-radius: 999px;
}

/* --- Search form layout --- */
.widget_search .search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

/* On small screens, stack input + button */
@media (max-width: 480px) {
    .widget_search .search-form {
        flex-direction: column;
        align-items: stretch;
    }
}

/* --- Search input field --- */
.widget_search .search-form .search-field {
    flex: 1 1 auto;
    font-size: 0.95rem;
    padding: 9px 11px;
    border: 1px solid #cdd9e5;
    border-radius: 999px;
    background-color: #f7f9fc;
    color: #12324a;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    box-sizing: border-box;
}

.widget_search .search-form .search-field::placeholder {
    color: #7b8794;
}

/* Focus state for input */
.widget_search .search-form .search-field:focus {
    border-color: #1b4e74;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(27, 78, 116, 0.16);
}

/* --- Search button (RD-style) --- */
.widget_search .search-form .search-submit {
    flex: 0 0 auto;
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid #1b4e74;
    background-color: #1b4e74;
    color: #ffffff;
    cursor: pointer;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

/* Hover + focus styles for button */
.widget_search .search-form .search-submit:hover,
.widget_search .search-form .search-submit:focus {
    background-color: #286292;
    border-color: #286292;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(17, 42, 70, 0.28);
}

/* Make button full-width when stacked on mobile */
@media (max-width: 480px) {
    .widget_search .search-form .search-submit {
        width: 100%;
        text-align: center;
    }
}

/* ----------------------------------------------------
   REFORMED DOGMATIKA — SIDEBAR CARD SKELETON
   Used for: About, Mission/Subscribe, Confessions, etc.
----------------------------------------------------- */


/* Header image strip on top */
.rd-sidebar-header-image {
    border-bottom: 1px solid #e6eef4;
}

/* Make the header image fill the width nicely */
.rd-sidebar-header-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Inner padding for card content */
.rd-sidebar-card-body {
    padding: 18px 20px 20px;
}

/* Sidebar card title */
.rd-sidebar-title {
    font-family: "Merriweather", Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 12px;
    color: #12324a;
}

/* Optional small accent underline under title */
.rd-sidebar-title::after {
    content: "";
    display: block;
    width: 36px;
    height: 2px;
    margin: 8px auto 0;
    background: #1b4e74;  /* RD blue */
    border-radius: 999px;
}

/* Body copy */
.rd-sidebar-text {
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    line-height: 1.55;
    text-align: center;
    color: #283544;
    margin: 0 0 16px;
}

/* CTA container */
.rd-widget-cta {
    text-align: center;
}

/* Standard RD sidebar button */
.rd-widget-btn {
    display: inline-block;
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid #1b4e74;
    background-color: #1b4e74;
    color: #ffffff;
    text-decoration: none;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease,
                color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

/* Hover state */
.rd-widget-btn:hover,
.rd-widget-btn:focus {
    background-color: #286292;
    border-color: #286292;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(17, 42, 70, 0.28);
    transform: translateY(-1px);
}

/* Mobile spacing adjustments if needed */
@media (max-width: 480px) {
    .rd-sidebar-card-body {
        padding: 16px 16px 18px;
    }
}

/* ----------------------------------------------------
   RD Sidebar — Mission + Subscribe Enhancements
----------------------------------------------------- */

/* Slightly tighter mission paragraphs inside this card */
.rd-sidebar-mission-subscribe .rd-sidebar-text {
    margin-bottom: 10px;
}

/* Divider between mission text and subscribe area */
.rd-sidebar-divider {
    width: 42px;
    height: 2px;
    margin: 14px auto 16px;
    background-color: #1b4e74;
    border-radius: 999px;
}

/* Subscribe section heading under mission */
.rd-sidebar-subscribe-block {
    text-align: center;
}

.rd-sidebar-subscribe-block .rd-subscribe-title {
    font-family: "Merriweather", Georgia, "Times New Roman", serif;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 6px;
    color: #12324a;
}

.rd-sidebar-subscribe-block .rd-subscribe-tagline {
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 0 0 10px;
    color: #283544;
}

/* Jetpack subscribe form inside the card */
.rd-sidebar-mission-subscribe form input[type="email"],
.rd-sidebar-mission-subscribe form input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    padding: 8px 11px;
    border-radius: 999px;
    border: 1px solid #cdd9e5;
    background-color: #f7f9fc;
    color: #12324a;
    outline: none;
    margin: 0 0 10px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.rd-sidebar-mission-subscribe form input[type="email"]::placeholder,
.rd-sidebar-mission-subscribe form input[type="text"]::placeholder {
    color: #7b8794;
}

/* Focus state for email field */
.rd-sidebar-mission-subscribe form input[type="email"]:focus,
.rd-sidebar-mission-subscribe form input[type="text"]:focus {
    border-color: #1b4e74;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(27, 78, 116, 0.16);
}

/* Submit button styled like other RD buttons */
.rd-sidebar-mission-subscribe form input[type="submit"] {
    display: inline-block;
    width: 100%;
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid #1b4e74;
    background-color: #1b4e74;
    color: #ffffff;
    text-decoration: none;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease,
                color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.rd-sidebar-mission-subscribe form input[type="submit"]:hover,
.rd-sidebar-mission-subscribe form input[type="submit"]:focus {
    background-color: #286292;
    border-color: #286292;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(17, 42, 70, 0.28);
    transform: translateY(-1px);
}

/* ----------------------------------------------------
   RD Sidebar — Clean Up Jetpack Subscribe Block
   (within Mission + Subscribe card only)
----------------------------------------------------- */

/* In the wrapped Jetpack block, hide its title + intro text */
.rd-sidebar-mission-subscribe .rd-subscribe-form > h2,
.rd-sidebar-mission-subscribe .rd-subscribe-form > h3,
.rd-sidebar-mission-subscribe .rd-subscribe-form > p:first-of-type,
.rd-sidebar-mission-subscribe .rd-subscribe-form > p:nth-of-type(2) {
    display: none !important;
}

/* Tighten spacing above the email field */
.rd-sidebar-mission-subscribe .rd-subscribe-form form {
    margin-top: 6px !important;
}

/* Slightly tighter spacing beneath the last mission paragraph */
.rd-sidebar-mission-subscribe .rd-sidebar-text:last-of-type {
    margin-bottom: 12px;
}

/* Subscribe block spacing */
.rd-sidebar-subscribe-block {
    margin-top: 6px;
}

/* ----------------------------------------------
   RD Sidebar — Refined Email Field Underline
   (Option 1: Keep but soften)
---------------------------------------------- */

.rd-sidebar-mission-subscribe form input[type="email"] {
    border-bottom-width: 1px !important;
    border-bottom-color: #cdd9e5 !important;
}

/* Focus state stays RD-blue, but thin and refined */
.rd-sidebar-mission-subscribe form input[type="email"]:focus {
    border-bottom-color: #1b4e74 !important;
    box-shadow: none !important; /* prevent thick glow */
}

/* ----------------------------------------------
   RD Sidebar — Mission + Subscribe Spacing Polish
---------------------------------------------- */

/* Slightly tighten space above subscribe area */
.rd-sidebar-mission-subscribe .rd-sidebar-subscribe-block {
    margin-top: 4px;
}

/* Tighten tagline spacing under STAY CONNECTED */
.rd-sidebar-mission-subscribe .rd-subscribe-tagline {
    margin-bottom: 8px;
}

/* Slightly reduce spacing before the divider */
.rd-sidebar-mission-subscribe .rd-sidebar-text:last-of-type {
    margin-bottom: 10px;
}

/* Tighten vertical space inside Jetpack form wrapper */
.rd-sidebar-mission-subscribe .rd-subscribe-form form {
    margin-top: 4px !important;
}

/* ----------------------------------------------------
   RD Sidebar — FORCE REMOVE Jetpack Blue Underline
----------------------------------------------------- */

/* Remove ALL Jetpack bottom borders + focus underlines */
.rd-sidebar-mission-subscribe .rd-subscribe-form input[type="email"],
.rd-sidebar-mission-subscribe .rd-subscribe-form input[type="email"]:focus,
.rd-sidebar-mission-subscribe .rd-subscribe-form input[type="email"]:active {
    border: 1px solid #cdd9e5 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    outline: none !important;
}

/* RD focus style (thin, elegant, brand blue) */
.rd-sidebar-mission-subscribe .rd-subscribe-form input[type="email"]:focus {
    border: 1px solid #1b4e74 !important;
    box-shadow: 0 0 0 2px rgba(27, 78, 116, 0.18) !important;
}

/* ===============================
   RD Lord’s Supper Widget Styling
   =============================== */

.rd-lords-supper-widget {
  border: 1px solid #D6E2EC; /* soft RD blue border */
  border-radius: 14px;
  padding: 22px 20px 24px;
  background: #ffffff;
}

/* Widget title */
.rd-lords-supper-widget .rd-widget-title {
  color: #1B4E74; /* RD primary blue */
  font-family: "Merriweather", serif;
  font-size: 1.25rem;
  text-align: center;
  margin: 18px 0 14px;
}

/* Body text */
.rd-lords-supper-widget p {
  color: #2F3E4E;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Scripture quotation */
.rd-lords-supper-widget .rd-widget-scripture {
  color: #1B4E74;
  font-style: italic;
  text-align: center;
  margin: 18px 0 12px;
}

.rd-lords-supper-widget .rd-widget-scripture span {
  display: block;
  font-style: normal;
  font-size: 0.9rem;
  color: #286292; /* RD accent blue */
  margin-top: 4px;
}

/* Read more link */
.rd-lords-supper-widget .rd-widget-link {
  text-align: center;
  margin-top: 14px;
}

.rd-lords-supper-widget .rd-widget-link a {
  color: #1B4E74;
  font-weight: 600;
  text-decoration: none;
}

.rd-lords-supper-widget .rd-widget-link a:hover {
  color: #286292;
  text-decoration: underline;
}

/* ===============================
   RD Gospel Widget — Post Tenebras Lux
   =============================== */

.rd-gospel-widget {
  border: 1px solid #D6E2EC; /* soft RD blue border */
  border-radius: 14px;
  padding: 22px 20px 24px;
  background: #ffffff;
}

.rd-gospel-widget .rd-widget-title {
  color: #1B4E74; /* RD primary blue */
  font-family: "Merriweather", serif;
  font-size: 1.25rem;
  text-align: center;
  margin: 18px 0 6px;
}

.rd-gospel-widget .rd-widget-subtitle {
  text-align: center;
  margin: 0 0 14px;
  color: #286292; /* RD accent blue */
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.rd-gospel-widget p {
  color: #2F3E4E;
  font-size: 0.95rem;
  line-height: 1.65;
}

.rd-gospel-widget .rd-widget-scripture {
  color: #1B4E74;
  font-style: italic;
  text-align: center;
  margin: 18px 0 12px;
}

.rd-gospel-widget .rd-widget-scripture span {
  display: block;
  font-style: normal;
  font-size: 0.9rem;
  color: #286292;
  margin-top: 4px;
}

.rd-gospel-widget .rd-widget-link {
  text-align: center;
  margin-top: 14px;
}

.rd-gospel-widget .rd-widget-link a {
  color: #1B4E74;
  font-weight: 600;
  text-decoration: none;
}

.rd-gospel-widget .rd-widget-link a:hover {
  color: #286292;
  text-decoration: underline;
}

.rd-gospel-widget .rd-widget-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* =========================================================
   Reformed Dogmatika Featured Widget (RD Feature Card)
   Classes used: .rd-feature-widget, .rd-feature-card, .rd-feature-media,
                 .rd-feature-body, .rd-feature-title, .rd-feature-excerpt,
                 .rd-feature-actions, .rd-feature-btn
   ========================================================= */

/* Outer wrapper */
.rd-feature-widget {
  max-width: 640px;
  margin: 18px auto;
}

/* Card */
.rd-feature-card {
  background: #ffffff;
  border: 1px solid rgba(27, 78, 116, 0.18);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
}

/* Media area */
.rd-feature-media {
  display: block;
  line-height: 0; /* removes tiny gaps around images */
  background: #0f172a; /* safe fallback while image loads */
}

.rd-feature-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
}

/* Body */
.rd-feature-body {
  padding: 18px 18px 20px 18px;
  text-align: center;
}

/* Title */
.rd-feature-title {
  margin: 10px 0 10px 0;
  font-family: inherit;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: 0.2px;
}

.rd-feature-title a {
  color: #1B4E74;
  text-decoration: none;
}

.rd-feature-title a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Excerpt */
.rd-feature-excerpt {
  margin: 0 auto 18px auto;
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(17, 24, 39, 0.92);
}

/* Actions */
.rd-feature-actions {
  margin-top: 6px;
}

/* Button */
.rd-feature-btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 14px;
  background: #1B4E74;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 18px rgba(27, 78, 116, 0.18);
}

.rd-feature-btn:hover {
  background: #173f5f; /* slightly darker RD-blue */
}

/* Mobile refinement */
@media (max-width: 520px) {
  .rd-feature-widget { margin: 14px 12px; }
  .rd-feature-title { font-size: 28px; }
  .rd-feature-excerpt { font-size: 15.5px; }
  .rd-feature-media img { max-height: 240px; }
}

/* Tight small screens */
@media (max-width: 380px) {
  .rd-feature-title { font-size: 26px; }
  .rd-feature-body { padding: 16px; }
}

/* RD Feature Widget — FORCE button text to display (theme/iOS safe) */
.rd-feature-widget .rd-feature-btn,
.rd-feature-widget .rd-feature-btn:link,
.rd-feature-widget .rd-feature-btn:visited,
.rd-feature-widget .rd-feature-btn:hover,
.rd-feature-widget .rd-feature-btn:active {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important; /* iOS/Safari fix */
  opacity: 1 !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  text-align: center !important;
}

/* If Astra/theme adds pseudo-elements that can cover text, neutralize */
.rd-feature-widget .rd-feature-btn:before,
.rd-feature-widget .rd-feature-btn:after {
  content: none !important;
}

/* Make sure the button has normal text flow */
.rd-feature-widget .rd-feature-btn {
  display: inline-block !important;
  padding: 14px 20px !important;
  min-width: 240px;
}

/* RD Feature Widget — Title refinement */
.rd-feature-title {
  font-weight: 700;
  line-height: 1.08;
}

/* Reformed Dogmatika — About Page Hero */

.rd-page-hero {
  position: relative;
  max-width: 960px;
  margin: 0 auto 48px;
}

.rd-page-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.rd-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 28px 20px 24px;
  text-align: center;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.0)
  );
}

.rd-hero-title {
  font-family: "Merriweather", serif;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 6px;
}

.rd-hero-subtitle {
  font-family: "Open Sans", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #e6e6e6;
}

/* About Page — remove hero text overlay completely */
.rd-hero-overlay,
.rd-hero-title,
.rd-hero-subtitle {
  display: none !important;
}

/* RD NAV — Gold-standard focus styling (keep keyboard access, remove mouse blue box) */

/* 1) Remove default blue focus outline for mouse clicks */
.main-navigation a:focus,
.main-navigation button:focus {
  outline: none !important;
}

/* 2) Restore a clean, on-brand focus indicator for keyboard users only */
.main-navigation a:focus-visible,
.main-navigation button:focus-visible {
  outline: 2px solid rgba(40, 98, 146, 0.55) !important; /* subtle RD-blue */
  outline-offset: 4px !important;
  border-radius: 6px;
}

/* 3) If Astra applies box-shadow focus styles, neutralize for mouse and reapply for keyboard */
.main-navigation a:focus:not(:focus-visible),
.main-navigation button:focus:not(:focus-visible) {
  box-shadow: none !important;
}

/* RD CONTENT LINKS — Remove mouse focus outline, keep keyboard focus visible */

/* 1) Remove default outline when clicking links in content */
.entry-content a:focus,
.page-content a:focus,
.site-content a:focus,
.rd-article-body a:focus {
  outline: none !important;
}

/* 2) Keep an intentional, accessible focus indicator for keyboard users */
.entry-content a:focus-visible,
.page-content a:focus-visible,
.site-content a:focus-visible,
.rd-article-body a:focus-visible {
  outline: 2px solid rgba(40, 98, 146, 0.55) !important;
  outline-offset: 3px !important;
  border-radius: 4px;
}

/* 3) If any theme/plugin adds focus glow, remove it for mouse clicks only */
.entry-content a:focus:not(:focus-visible),
.page-content a:focus:not(:focus-visible),
.site-content a:focus:not(:focus-visible),
.rd-article-body a:focus:not(:focus-visible) {
  box-shadow: none !important;
}

/* RD — POST CONTENT LINK FOCUS (DESKTOP) */
/* Remove the blue focus box on mouse click, keep keyboard focus visible */

/* Astra content wrappers + common WP wrappers */
.ast-single-entry-content a:focus,
.ast-single-entry-content a:active,
.entry-content a:focus,
.entry-content a:active,
.site-content a:focus,
.site-content a:active,
.article-content a:focus,
.article-content a:active {
  outline: none !important;
  box-shadow: none !important;
}

/* If a theme/plugin applies the effect to children inside the link */
.ast-single-entry-content a:focus *,
.entry-content a:focus *,
.site-content a:focus * {
  outline: none !important;
  box-shadow: none !important;
}

/* Keep a refined focus ring for keyboard users */
.ast-single-entry-content a:focus-visible,
.entry-content a:focus-visible,
.site-content a:focus-visible {
  outline: 2px solid rgba(40, 98, 146, 0.55) !important;
  outline-offset: 3px !important;
  border-radius: 4px;
  box-shadow: none !important;
}

/* RD — LOGO + SUBSCRIBE CTA focus polish (remove mouse blue box, keep keyboard focus) */

/* 1) Header logo / site identity links */
.custom-logo-link:focus,
.custom-logo-link:active,
.site-logo a:focus,
.site-logo a:active,
.ast-site-identity a:focus,
.ast-site-identity a:active,
.site-branding a:focus,
.site-branding a:active {
  outline: none !important;
  box-shadow: none !important;
}

/* 2) Footer + Subscribe areas (covers links + buttons + common WP subscribe form fields) */
.site-footer a:focus,
.site-footer a:active,
.site-footer button:focus,
.site-footer button:active,
.site-footer input:focus,
.site-footer input:active,
.wp-block-button__link:focus,
.wp-block-button__link:active,
button:focus,
button:active,
input[type="submit"]:focus,
input[type="submit"]:active {
  outline: none !important;
  box-shadow: none !important;
}

/* 3) Keyboard-only focus ring (keeps accessibility, looks on-brand) */
.custom-logo-link:focus-visible,
.site-logo a:focus-visible,
.ast-site-identity a:focus-visible,
.site-branding a:focus-visible,
.site-footer a:focus-visible,
.site-footer button:focus-visible,
.wp-block-button__link:focus-visible,
button:focus-visible,
input[type="submit"]:focus-visible {
  outline: 2px solid rgba(40, 98, 146, 0.55) !important;
  outline-offset: 4px !important;
  border-radius: 6px;
  box-shadow: none !important;
}

/* RD — Kill blue focus box for mouse clicks (content links + subscribe CTA), keep keyboard focus */

/* =========================
   1) LINKS INSIDE ARTICLES
   ========================= */

html body .site-content .ast-single-entry-content a:focus,
html body .site-content .ast-single-entry-content a:active,
html body .site-content .entry-content a:focus,
html body .site-content .entry-content a:active,
html body .site-content article a:focus,
html body .site-content article a:active {
  outline: none !important;
  box-shadow: none !important;
  text-decoration-thickness: auto;
}

html body .site-content .ast-single-entry-content a:focus *,
html body .site-content .entry-content a:focus * {
  outline: none !important;
  box-shadow: none !important;
}

/* Keyboard focus (still accessible) */
html body .site-content .ast-single-entry-content a:focus-visible,
html body .site-content .entry-content a:focus-visible,
html body .site-content article a:focus-visible {
  outline: 2px solid rgba(40, 98, 146, 0.55) !important;
  outline-offset: 3px !important;
  border-radius: 4px;
  box-shadow: none !important;
}

/* =========================
   2) SUBSCRIBE BUTTON / WIDGETS (Jetpack + WP)
   ========================= */

/* Common Jetpack/WordPress.com subscription widget + block selectors */
html body .jetpack_subscription_widget a:focus,
html body .jetpack_subscription_widget a:active,
html body .jetpack_subscription_widget button:focus,
html body .jetpack_subscription_widget button:active,
html body .jetpack_subscription_widget input:focus,
html body .jetpack_subscription_widget input:active,
html body .widget_blog_subscription a:focus,
html body .widget_blog_subscription a:active,
html body .widget_blog_subscription button:focus,
html body .widget_blog_subscription button:active,
html body .widget_blog_subscription input:focus,
html body .widget_blog_subscription input:active,
html body .wp-block-jetpack-subscriptions a:focus,
html body .wp-block-jetpack-subscriptions a:active,
html body .wp-block-jetpack-subscriptions button:focus,
html body .wp-block-jetpack-subscriptions button:active,
html body .wp-block-jetpack-subscriptions input:focus,
html body .wp-block-jetpack-subscriptions input:active,
html body form[id*="subscribe"] button:focus,
html body form[id*="subscribe"] button:active,
html body form[id*="subscribe"] input[type="submit"]:focus,
html body form[id*="subscribe"] input[type="submit"]:active {
  outline: none !important;
  box-shadow: none !important;
}

/* Keyboard focus ring for subscribe controls */
html body .jetpack_subscription_widget a:focus-visible,
html body .jetpack_subscription_widget button:focus-visible,
html body .jetpack_subscription_widget input:focus-visible,
html body .widget_blog_subscription a:focus-visible,
html body .widget_blog_subscription button:focus-visible,
html body .widget_blog_subscription input:focus-visible,
html body .wp-block-jetpack-subscriptions a:focus-visible,
html body .wp-block-jetpack-subscriptions button:focus-visible,
html body .wp-block-jetpack-subscriptions input:focus-visible,
html body form[id*="subscribe"] button:focus-visible,
html body form[id*="subscribe"] input[type="submit"]:focus-visible {
  outline: 2px solid rgba(40, 98, 146, 0.55) !important;
  outline-offset: 4px !important;
  border-radius: 6px;
  box-shadow: none !important;
}

/* =========================================================
   RD Catechism Callout (Reusable Standard)
   Questions bold, answers calm + indented
   ========================================================= */

.rd-catechism-callout {
  border-left: 4px solid #1b4e74;
  background: #f7f9fb;
  padding: 22px 26px;
  margin: 36px 0;
  font-family: "Merriweather", serif;
}

.rd-catechism-callout .rd-catechism-label {
  margin: 0 0 14px;
  font-weight: 700;
  color: #1b4e74;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.rd-catechism-callout .rd-catechism-q {
  margin: 0 0 10px;
  font-weight: 700;
  color: inherit;
}

.rd-catechism-callout .rd-catechism-a {
  margin: 0 0 22px;
  margin-left: 18px;
  font-weight: 400;
  color: #333;
}

.rd-catechism-callout .rd-catechism-a:last-child {
  margin-bottom: 0;
}

/* =========================================
   RD Catechism Callout – Hard Overrides
   (Answers: NOT bold, NOT italic)
   ========================================= */

.rd-catechism-callout .rd-catechism-a,
.rd-catechism-callout .rd-catechism-a * {
  font-style: normal !important;
  font-weight: 400 !important;
}

.rd-catechism-callout .rd-catechism-q,
.rd-catechism-callout .rd-catechism-q * {
  font-style: normal !important;
}

/* Tighten vertical spacing above page titles */
.ast-single-post .entry-header,
.ast-page-builder-template .entry-header,
.page .entry-header {
  padding-top: 32px;
  margin-top: 0;
}

/* Subtle reduction of top whitespace on static pages */
.page .entry-content {
  padding-top: 10px;
}

.page h1,
.page .page-title {
  margin-top: 10px;
}

/* =========================================================
   REFORMED DOGMATIKA
   MOBILE TYPOGRAPHY — POSTS + PAGES (GOLD STANDARD)
   ========================================================= */

@media (max-width: 768px) {

  /* Unified mobile padding */
  body.single-post .site-content,
  body.page .site-content,
  body.single-post .content-area,
  body.page .content-area {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* =====================================================
     TITLES — POSTS + PAGES (Merged + Cleaned)
     - Includes: Final Balance + Colon Centering Fix
     ===================================================== */

  body.single-post h1.entry-title,
  body.page h1.entry-title,
  body.single-post .entry-title,
  body.page .entry-title {

    /* Typography */
    font-family: "Merriweather", Georgia, "Times New Roman", serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    color: #1b4e74 !important;

    /* Final mobile balance */
    font-size: 1.85rem !important;
    line-height: 1.26 !important;

    /* Layout */
    display: block !important;
    width: 100% !important;
    max-width: 86% !important;
    margin: 18px auto 14px !important;
    text-align: center !important;

    /* True line-centering (fixes “Calvinisticum:” drift) */
    text-align-last: center !important;
    hanging-punctuation: none !important;

    /* Remove side nudges that can throw optical centering on iOS */
    padding-left: 0 !important;
    padding-right: 0 !important;

    /* 🔒 HARD STOP on ugly word breaks */
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  /* =====================================================
     ENTRY HEADER CONTAINER FIX
     ===================================================== */

  body.single-post .entry-header,
  body.page .entry-header,
  body.single-post header.entry-header,
  body.page header.entry-header {
    width: 100% !important;
    max-width: none !important;
  }

  /* =====================================================
     META / BYLINE (posts only)
     ===================================================== */

  body.single-post .entry-meta {
    text-align: center !important;
    margin: 0 auto 18px !important;
    max-width: 520px !important;
    font-size: 0.95rem !important;
    opacity: 0.85;
  }

  /* =====================================================
     FEATURED IMAGES — POSTS + PAGES
     ===================================================== */

  body.single-post .post-thumbnail,
  body.page .post-thumbnail,
  body.single-post .wp-post-image,
  body.page .wp-post-image {
    display: block !important;
    margin: 18px auto 22px !important;
  }

  body.single-post .post-thumbnail img,
  body.page .post-thumbnail img,
  body.single-post img.wp-post-image,
  body.page img.wp-post-image {
    width: 100% !important;
    max-width: 480px !important;
    height: auto !important;
    border-radius: 6px !important;
  }

  /* =====================================================
     FIRST PARAGRAPH BREATHING ROOM
     ===================================================== */

  body.single-post .entry-content > p:first-of-type,
  body.page .entry-content > p:first-of-type {
    margin-top: 10px !important;
  }
}

/* =========================================================
   RD — PAGES ONLY: Fix ultra-narrow mobile width + ugly word breaks
   (Does NOT affect posts)
   ========================================================= */

@media (max-width: 768px) {

  /* 1) Force the Astra page container to use full width */
  body.page .site-content,
  body.page .content-area,
  body.page .site-main,
  body.page .ast-container,
  body.page .ast-container-fluid {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 2) Stop aggressive mid-word breaking anywhere on pages */
  body.page,
  body.page * {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  /* 3) Specifically style your custom "RD PAGE TITLE" paragraph
        (the big centered Merriweather title you paste into page HTML) */
  body.page p[style*="font-family: 'Merriweather'"][style*="font-size: 3.2rem"] {
    font-size: clamp(2.1rem, 7vw, 3.0rem) !important;
    line-height: 1.12 !important;
    letter-spacing: 0.02em !important;
    text-align: center !important;
    margin: 26px auto 16px !important;

    /* Keep a little side air without affecting true centering of H1 */
    padding: 0 12px !important;

    /* hard stop on the “Missi / on” nonsense */
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }
}

/* =====================================================
   FLUID TITLE SIZE (POSTS + PAGES)
   Desktop / Global
   Mobile sizing controlled separately
   ===================================================== */

body.single-post h1.entry-title,
body.page h1.entry-title,
body.single-post .entry-title,
body.page .entry-title {
  font-size: clamp(2.05rem, 6.2vw, 3.0rem) !important;
}

/* =========================================================
   RD — MOBILE WORD BREAK CONTROL (ASTRA / iOS SAFE FIX)
   Prevents mid-word breaks while allowing emergency wraps
   ========================================================= */

@media (max-width: 768px) {

  /* Headings */
  h1, h2, h3, h4, h5, h6 {
    word-break: normal !important;
    overflow-wrap: break-word !important; /* emergency only */
    hyphens: none !important;
  }

  /* Content + containers */
  .rd-article-body,
  .rd-article-body *,
  .ast-container,
  .ast-container * {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
  }
}

/* =========================================================
   RD — ASSURANCE WIDGET
   Forced match to Gospel / Lord’s Supper typography
   ========================================================= */

.rd-assurance-widget.rd-feature-widget {
  margin: 0 0 18px !important;
}

.rd-assurance-widget .rd-feature-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(27,78,116,.28) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 6px 14px rgba(0,0,0,.05) !important;
}

.rd-assurance-widget .rd-feature-media {
  display: block !important;
  padding: 12px !important;
  background: #ffffff !important;
}

.rd-assurance-widget .rd-feature-media img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 12px !important;
  border: 1px solid rgba(27,78,116,.12) !important;
}

.rd-assurance-widget .rd-feature-body {
  padding: 6px 18px 18px 18px !important;
  text-align: center !important;
}

.rd-assurance-widget .rd-feature-title {
  margin: 8px 0 12px 0 !important;
  font-family: "Merriweather", Georgia, serif !important;
  font-size: 19px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  color: rgba(27,78,116,.92) !important;

  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

.rd-assurance-widget .rd-feature-title a {
  color: inherit !important;
  text-decoration: none !important;
}

.rd-assurance-widget .rd-feature-title a:hover {
  text-decoration: underline !important;
}

.rd-assurance-widget .rd-feature-excerpt {
  margin: 0 0 18px 0 !important;
  font-family: "Merriweather", Georgia, serif !important;
  font-size: 14px !important;
  font-weight: 300 !important;
  line-height: 1.95 !important;
  color: rgba(31,42,51,.86) !important;

  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* Assurance button */
.rd-assurance-widget .rd-feature-btn {
  display: block !important;
  max-width: 220px !important;
  margin: 0 auto !important;
  padding: 10px 16px !important;
  border-radius: 10px !important;

  background: #1f4f78 !important;
  border: 1.5px solid #1f4f78 !important;

  color: #ffffff !important;
  font-family: "Open Sans", Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;

  text-decoration: none !important;
  text-align: center !important;
}

.rd-assurance-widget .rd-feature-btn:hover {
  background: #ffffff !important;
  color: #1f4f78 !important;
}

/* =========================================================
   RD — MISSION "READ MORE" LINK (SIDEBAR)
   Gold-standard, restrained invitation
   ========================================================= */

.rd-sidebar-mission .rd-mission-readmore {
  text-align: center !important;
  margin-top: 14px !important;
}

.rd-sidebar-mission .rd-mission-readmore a {
  font-family: "Merriweather", Georgia, serif !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #1b4e74 !important;
  text-decoration: none !important;
  letter-spacing: 0.2px !important;
}

.rd-sidebar-mission .rd-mission-readmore a:hover {
  text-decoration: underline !important;
}

/* =========================================================
   RD — MISSION WIDGET: TRUE LIGHT BODY TEXT + BUTTON
   ========================================================= */

/* Title stays Merriweather */
.rd-sidebar-mission .rd-sidebar-title {
  font-family: "Merriweather", Georgia, serif !important;
  font-weight: 600 !important;
  color: #1b4e74 !important;
  text-align: center !important;
}

/* Body text: switch to Open Sans (actually loads light weights reliably) */
.rd-sidebar-mission .rd-sidebar-text {
  font-family: "Open Sans", Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 300 !important;
  line-height: 1.95 !important;
  color: rgba(31,42,51,.72) !important; /* lighter ink */
  text-align: center !important;
  margin: 0 0 1.05em !important;
}

.rd-sidebar-mission .rd-sidebar-text:last-of-type {
  margin-bottom: 0 !important;
}

/* Gold-standard button */
.rd-sidebar-mission .rd-mission-readmore {
  text-align: center !important;
  margin-top: 16px !important;
}

.rd-sidebar-mission .rd-mission-btn {
  display: inline-block !important;
  padding: 11px 18px !important;
  border-radius: 12px !important;
  border: 1.5px solid rgba(27,78,116,.55) !important;
  background: #ffffff !important;

  font-family: "Merriweather", Georgia, serif !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px !important;

  color: #1b4e74 !important;
  text-decoration: none !important;
}

.rd-sidebar-mission .rd-mission-btn:hover {
  background: rgba(27,78,116,.06) !important;
  border-color: rgba(27,78,116,.75) !important;
}

/* =========================================================
   REFORMED DOGMATIKA — SIDEBAR GOLD STANDARD v1.0
   Canonical widget system (HTML + CSS)
   Paste at BOTTOM of Additional CSS (append)
   ========================================================= */

/* ---------- Canonical Tokens (colors, spacing, type) ---------- */

/* ---------- Base Card ---------- */
.rd-sidebar-card {
  background: var(--rd-sidebar-card);
  border: 1px solid var(--rd-sidebar-border);
  border-radius: var(--rd-sidebar-radius);
  overflow: hidden;
  box-shadow: var(--rd-sidebar-shadow);
}

.rd-sidebar-card .rd-card-inner {
  padding: var(--rd-sidebar-pad);
}

/* ---------- Header Image Strip (optional) ---------- */
.rd-sidebar-card .rd-card-media {
  display:block;
  line-height: 0;
}

.rd-sidebar-card .rd-card-media img {
  width:100%;
  height:auto;
  display:block;
}

/* If you want a consistent image height for “banner” style widgets */
.rd-sidebar-card.rd-media-fixed .rd-card-media img {
  height: 128px;
  object-fit: cover;
}

/* ---------- Title + Text ---------- */
.rd-sidebar-card .rd-card-title {
  font-family: var(--rd-sidebar-title-font);
  font-size: var(--rd-sidebar-title-size);
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--rd-sidebar-brand);
  margin: 2px 0 var(--rd-sidebar-gap) 0;
  text-align: center;
}

.rd-sidebar-card .rd-card-text {
  font-family: var(--rd-sidebar-body-font);
  font-size: var(--rd-sidebar-body-size);
  font-weight: 300;
  line-height: var(--rd-sidebar-line);
  color: var(--rd-sidebar-muted);
  margin: 0 0 var(--rd-sidebar-gap) 0;
}

.rd-sidebar-card .rd-card-text strong {
  color: var(--rd-sidebar-ink);
  font-weight: 600;
}

/* Optional: small centered “tagline” line */
.rd-sidebar-card .rd-card-kicker {
  font-family: var(--rd-sidebar-body-font);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rd-sidebar-ink);
  text-align: center;
  margin: 0 0 8px 0;
}

/* ---------- Canonical Button (ONE button style for all widgets) ---------- */
.rd-sidebar-card .rd-card-cta {
  text-align: center;
  margin-top: 10px;
}

.rd-sidebar-card .rd-btn {
  display: inline-block;
  font-family: var(--rd-sidebar-title-font);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .2px;
  text-decoration: none !important;

  color: #ffffff !important;
  background: var(--rd-sidebar-brand);
  border: 1px solid var(--rd-sidebar-brand);
  border-radius: 999px;

  padding: 9px 16px;
  line-height: 1;
  transition: transform .12s ease, opacity .12s ease;
}

.rd-sidebar-card .rd-btn:hover {
  transform: translateY(-1px);
  opacity: .92;
}

/* ---------- Lists (contributors, links, chips) ---------- */
.rd-sidebar-card .rd-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rd-sidebar-card .rd-card-list li {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid rgba(27,78,116,.12);
}

.rd-sidebar-card .rd-card-list li:last-child {
  border-bottom: 0;
}

.rd-sidebar-card .rd-card-list a {
  text-decoration: none !important;
  color: var(--rd-sidebar-ink);
  font-family: var(--rd-sidebar-body-font);
  font-size: 13.4px;
  font-weight: 600;
}

.rd-sidebar-card .rd-card-list a:hover {
  color: var(--rd-sidebar-brand);
}

/* ---------- Micro polish for Astra widget wrapper spacing ---------- */
.sidebar-main .widget {
  margin-bottom: 18px;
}

/* ---------- Mobile tune ---------- */


/* =========================================================
   PATCH — Sidebar Gold Standard v1.0
   Fix button text visibility (theme overrides)
   ========================================================= */
.rd-sidebar-card .rd-btn,
.rd-sidebar-card .rd-btn:link,
.rd-sidebar-card .rd-btn:visited {
  color: #ffffff !important;
}

.rd-sidebar-card .rd-btn:hover,
.rd-sidebar-card .rd-btn:focus {
  color: #ffffff !important;
}

/* =========================================================
   CONTRIBUTORS — Gold Standard v1.0 avatar layout
   ========================================================= */
.rd-family-block { margin-top: 12px; }

.rd-family-title {
  font-family: var(--rd-sidebar-body-font);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--rd-sidebar-ink);
  margin: 0 0 8px 0;
  text-align: left;
}

.rd-people {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 10px;
}

.rd-people li { margin: 0; padding: 0; }

.rd-people a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  color: var(--rd-sidebar-ink);
  font-family: var(--rd-sidebar-body-font);
  font-size: 13px;
  font-weight: 600;
}

.rd-people img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(27,78,116,.22);
}

.rd-people a:hover { color: var(--rd-sidebar-brand); }

@media (max-width: 768px) {
  .rd-people { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   JETPACK SUBSCRIBE — Gold Standard v1.0 styling
   Keeps Jetpack isolated but visually unified
   ========================================================= */
.rd-jetpack-subscribe {
  margin-top: 10px;
}

/* Inputs */
.rd-jetpack-subscribe input[type="email"],
.rd-jetpack-subscribe input[type="text"] {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(27,78,116,.28) !important;
  font-family: var(--rd-sidebar-body-font) !important;
  font-size: 14px !important;
  color: var(--rd-sidebar-ink) !important;
}

/* Submit button */
.rd-jetpack-subscribe input[type="submit"],
.rd-jetpack-subscribe button,
.rd-jetpack-subscribe .jetpack_subscription_widget input[type="submit"] {
  width: 100% !important;
  margin-top: 10px !important;

  background: var(--rd-sidebar-brand) !important;
  border: 1px solid var(--rd-sidebar-brand) !important;
  color: #ffffff !important;

  font-family: var(--rd-sidebar-title-font) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .2px !important;

  padding: 10px 14px !important;
  border-radius: 999px !important;
  cursor: pointer !important;
}

/* Jetpack helper text (if it appears) */
.rd-jetpack-subscribe,
.rd-jetpack-subscribe p,
.rd-jetpack-subscribe label {
  font-family: var(--rd-sidebar-body-font) !important;
  color: var(--rd-sidebar-muted) !important;
}

/* =========================================================
   RD — STAY CONNECTED (CENTERED CALL-TO-ACTION)
   ========================================================= */

.rd-stay-connected {
  text-align: center !important;
  margin: 48px auto 32px auto !important;
  max-width: 520px;
}

.rd-stay-connected h2,
.rd-stay-connected p {
  text-align: center !important;
}

.rd-stay-link {
  text-align: center !important;
  margin-top: 16px !important;
}

.rd-stay-link a {
  display: inline-block !important;
  font-weight: 600;
}

.rd-stay-cross {
  display: block;
  margin: 18px auto 16px auto !important;
  text-align: center !important;
}

.rd-back-link {
  text-align: center !important;
  margin-top: 16px !important;
}

.rd-back-link a {
  display: inline-block !important;
}

/* =========================================================
   RD — JETPACK SUBSCRIBE FORM CLEANUP (REMOVE BLUE BAR)
   ========================================================= */

/* Remove Jetpack background panel */
.wp-block-jetpack-subscriptions,
.jetpack_subscription_widget,
.jetpack-subscription-form,
#subscribe-email,
#subscribe-submit {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Remove mystery blue block container */
.wp-block-jetpack-subscriptions > div,
.jetpack_subscription_widget > div {
  background: transparent !important;
  padding: 0 !important;
}

/* Center form elements cleanly */
.jetpack_subscription_widget form,
.jetpack-subscription-form form {
  text-align: center !important;
}

/* Input field styling */
.jetpack_subscription_widget input[type="email"] {
  max-width: 320px;
  width: 100%;
  padding: 10px 12px;
  margin: 12px auto;
  border-radius: 4px;
  border: 1px solid #cfd8df;
  font-size: 16px;
}

/* Subscribe button — restrained & on brand */


.jetpack_subscription_widget input[type="submit"]:hover {
  background-color: #163f5f;
}

/* =========================================================
   RD — SUBSCRIBE PAGE: REMOVE JETPACK "TITLE BAR"
   ========================================================= */

/* 1) Kill the empty Jetpack title/header area that themes often color as a bar */
.jetpack_subscription_widget .widget-title,
.jetpack_subscription_widget .widgettitle,
.wp-block-jetpack-subscriptions__header,
.wp-block-jetpack-subscriptions__title,
.wp-block-jetpack-subscriptions__description {
  display: none !important;
}

/* 2) Also remove any colored wrapper backgrounds Jetpack/theme might apply */
.wp-block-jetpack-subscriptions,
.wp-block-jetpack-subscriptions__content,
.wp-block-jetpack-subscriptions__form,
.jetpack_subscription_widget,
.jetpack_subscription_widget form,
.jetpack_subscription_widget form > div,
.jetpack_subscription_widget form > p,
#subscribe-email,


/* 3) Center everything nicely */
.jetpack_subscription_widget form {
  text-align: center !important;
}

/* 4) Make sure the email field and button look clean */
.jetpack_subscription_widget input[type="email"] {
  max-width: 340px;
  width: 100%;
  padding: 10px 12px;
  margin: 12px auto 10px auto;
  border-radius: 6px;
  border: 1px solid #cfd8df;
  font-size: 16px;
  background: #fff !important;
}


.jetpack_subscription_widget input[type="submit"]:hover {
  background-color: #163f5f !important;
}
/* =========================================================
   RD — SUBSCRIBE BUTTON OUTLINE (FINAL POLISH)
   ========================================================= */

.jetpack_subscription_widget input[type="submit"] {
  background-color: #ffffff !important;
  color: #1b4e74 !important;
  border: 2px solid #1b4e74 !important;
  padding: 10px 26px !important;
  border-radius: 6px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* =========================================================
   RD — SUBSCRIBE PAGE BUTTON OUTLINE (CAN’T MISS)
   ========================================================= */

.rd-subscribe-form-wrap input[type="submit"],
.rd-subscribe-form-wrap button[type="submit"],
.rd-subscribe-form-wrap .wp-block-button__link,
.rd-subscribe-form-wrap button,
.rd-subscribe-form-wrap input[type="button"] {
  background: #ffffff !important;
  color: #1b4e74 !important;

  border-width: 2px !important;
  border-style: solid !important;
  border-color: #1b4e74 !important;

  border-radius: 6px !important;
  padding: 10px 26px !important;

  font-size: 18px !important;
  font-weight: 700 !important;

  box-shadow: none !important;
  text-decoration: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

/* Hover: filled but restrained */
.rd-subscribe-form-wrap input[type="submit"]:hover,
.rd-subscribe-form-wrap button[type="submit"]:hover,
.rd-subscribe-form-wrap .wp-block-button__link:hover,
.rd-subscribe-form-wrap button:hover {
  background: #1b4e74 !important;
  color: #ffffff !important;
  border-color: #1b4e74 !important;
}

/* Focus: visible, classy accessibility */
.rd-subscribe-form-wrap input[type="submit"]:focus,
.rd-subscribe-form-wrap button[type="submit"]:focus,
.rd-subscribe-form-wrap button:focus {
  outline: 3px solid rgba(27, 78, 116, 0.25) !important;
  outline-offset: 3px !important;
}

.rd-subscribe-form-wrap input[type="submit"],
.rd-subscribe-form-wrap button[type="submit"],
.rd-subscribe-form-wrap button,
.rd-subscribe-form-wrap input[type="button"],
.rd-subscribe-form-wrap .wp-block-button__link {
  background: #ffffff !important;
  color: #1b4e74 !important;
  border: 2px solid #1b4e74 !important;
  border-radius: 6px !important;
  padding: 10px 26px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.rd-subscribe-form-wrap input[type="submit"]:hover,
.rd-subscribe-form-wrap button[type="submit"]:hover,
.rd-subscribe-form-wrap button:hover,
.rd-subscribe-form-wrap .wp-block-button__link:hover {
  background: #1b4e74 !important;
  color: #ffffff !important;
  border-color: #1b4e74 !important;
}

.rd-subscribe-form-wrap #subscribe-text {
  display: none !important;
}

.rd-subscribe-form-wrap .wp-block-jetpack-subscriptions__description {
  display: none !important;
}

.rd-subscribe-form-wrap .success,
.rd-subscribe-form-wrap .error,
.rd-subscribe-form-wrap .jetpack_subscription_message,
.rd-subscribe-form-wrap #subscribe-blog p {
  display: block !important;
}

/* Match Confessional Calendar title to RD sidebar standard */
.rd-sidebar-calendar .rd-sidebar-title {
  font-family: "Merriweather", Georgia, serif !important;
  color: #1b4e74 !important;          /* RD brand blue */
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 22px;
  line-height: 1.25;
}

/* =========================================================
   RD — SIDEBAR SIZE RESTORE + SEARCH ALIGNMENT (CLEAN)
   Includes targeted fixes for:
   - Contributors widget (shrink avatars, prevent name breaks)
   - Confessional Calendar (shrink download arrow only)
   ========================================================= */

/* ---------------------------------------------------------
   1) GLOBAL SIDEBAR CARD SIZING (NO TRANSFORM)
   --------------------------------------------------------- */

.rd-sidebar-card {
  transform: none !important;
  max-width: 100% !important;
}

.rd-sidebar-card-body {
  padding: 22px 20px !important;
}

.rd-sidebar-title {
  font-size: 22px !important;
  line-height: 1.25 !important;
  letter-spacing: 0.2px;
}

.rd-sidebar-text,
.rd-sidebar-card-body p {
  font-size: 17px !important;
  line-height: 2.0 !important;
}

.rd-sidebar-card li,
.rd-sidebar-card span {
  font-size: 16px !important;
  line-height: 1.75 !important;
}

.rd-sidebar-card .button,
.rd-sidebar-card a.button,
.rd-sidebar-card button {
  font-size: 16px !important;
  padding: 11px 18px !important;
  border-radius: 6px;
}

/* Default: sidebar images remain full width (hero images, banners, etc.) */
.rd-sidebar-card img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

/* ---------------------------------------------------------
   2) SEARCH WIDGET — LIFT IT UP (FINAL)
   --------------------------------------------------------- */

.sidebar-main,
.widget-area {
  padding-top: 0 !important;
}

#secondary {
  margin-top: -26px !important;
}

#secondary .widget:first-child {
  margin-top: 0 !important;
}

.widget_search,
.wp-block-search,
.ast-sidebar-search,
.ast-search-box {
  margin-top: 0 !important;
}

/* ---------------------------------------------------------
   3) CONTRIBUTORS WIDGET — SHRINK ONLY THE AVATAR PHOTOS
   (Keeps the top banner image full width)
   --------------------------------------------------------- */

/* Assumption: Contributors card has ONE big header image,
   followed by multiple small avatar images. We target avatars
   by shrinking images AFTER the first image in that widget card. */

.rd-sidebar-card.rd-sidebar-contributors img:not(:first-of-type),
.rd-sidebar-card .rd-contributors img,
.rd-sidebar-card .contributors img {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  border-radius: 999px !important;
  object-fit: cover !important;
  display: inline-block !important;
}

/* Prevent “Anth / ony” style breaks */
.rd-sidebar-card.rd-sidebar-contributors span,
.rd-sidebar-card .rd-contributors span,
.rd-sidebar-card .contributors span {
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
}

/* ---------------------------------------------------------
   4) CONFESSIONAL CALENDAR — SHRINK THE DOWNLOAD ARROW ONLY
   (Keep header image full width; shrink the SECOND image)
   --------------------------------------------------------- */

/* In your Calendar card: image #1 is the banner, image #2 is the arrow. */
.rd-sidebar-card.rd-sidebar-calendar img:nth-of-type(2),
.rd-sidebar-card .rd-calendar img:nth-of-type(2),
.rd-sidebar-card .confessional-calendar img:nth-of-type(2) {
  width: 110px !important;
  max-width: 110px !important;
  height: auto !important;
  display: block !important;
  margin: 12px auto 6px auto !important;
}

/* =========================================================
   RD — CONTRIBUTORS SIDEBAR: SIZE & NAME FIX (STEP 1)
   ========================================================= */

/* Avatar size reduction */
.rd-contributors-widget img,
.rd-contributor-avatar {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
}

/* Name text: prevent mid-word breaks */
.rd-contributor-name {
  font-size: 14px !important;
  line-height: 1.3 !important;
  text-align: center !important;

  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;

  max-width: 72px !important;
  margin: 6px auto 0 !important;
}

/* Tighten spacing so grid breathes */
.rd-contributor-item {
  padding: 6px 4px !important;
}

/* =========================================================
   RD — CONTRIBUTORS WIDGET ONLY
   Shrink headshots AND names
   ========================================================= */

/* Shrink contributor headshots */
#secondary a[href*="/author/"] img,
#secondary a[href*="author"] img {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  border-radius: 999px !important;
  object-fit: cover !important;
}

/* Shrink contributor names */
#secondary a[href*="/author/"],
#secondary a[href*="author"] {
  font-size: 13.5px !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}

/* Optional: tighten vertical spacing inside the contributors list */
#secondary a[href*="/author/"] + *,
#secondary a[href*="author"] + * {
  margin-top: 2px !important;
}

/* =========================================================
   RD — CONFESSIONAL CALENDAR (GOLD STANDARD v1.0, CLEAN)
   BLOB-PROOF + fully consistent with sidebar system
   Applies ONLY to #rd-calendar-widget
   ========================================================= */

#rd-calendar-widget,
#rd-calendar-widget * {
  background: transparent !important;
}

/* Kill any theme decoration that might attach to the wrapper */
#rd-calendar-widget::before,
#rd-calendar-widget::after,
#rd-calendar-widget .rd-card-media::before,
#rd-calendar-widget .rd-card-media::after {
  content: none !important;
  display: none !important;
}

/* Ensure the image displays and is not masked */
#rd-calendar-widget .rd-card-media {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

#rd-calendar-widget img.rd-calendar-img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* =========================================================
   FIX — Sidebar button text visibility (Gold Standard)
   Ensures button text is always readable in sidebar widgets
   ========================================================= */
#secondary .rd-btn,
#secondary .rd-btn:link,
#secondary .rd-btn:visited,
#secondary .rd-btn:hover,
#secondary .rd-btn:focus {
  color: #ffffff !important;
}

/* =========================================================
   CALENDAR BUTTON — FORCE TEXT TO DISPLAY (FINAL)
   Applies ONLY to the Confessional Calendar button.
   ========================================================= */

#rd-calendar-widget .rd-calendar-btn {
  display: inline-block !important;
  background: var(--rd-sidebar-brand) !important;
  border: 1px solid var(--rd-sidebar-brand) !important;
  color: #ffffff !important;

  font-family: var(--rd-sidebar-title-font) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .2px !important;

  padding: 10px 16px !important;
  border-radius: 999px !important;
  text-decoration: none !important;

  /* hard “text must exist” overrides */
  opacity: 1 !important;
  visibility: visible !important;
  text-indent: 0 !important;
  line-height: 1 !important;
}

/* If any rule sets font-size:0 on anchors inside widgets, this defeats it */
#rd-calendar-widget .rd-calendar-btn * {
  font-size: inherit !important;
  color: inherit !important;
}

/* Kill any pseudo-element overlay that might be covering the text */
#rd-calendar-widget .rd-calendar-btn::before,
#rd-calendar-widget .rd-calendar-btn::after {
  content: none !important;
  display: none !important;
}

/* =========================================================
   JETPACK SUBSCRIBE — Gold Standard v1.0 HEALTH FIX
   Fixes: giant “Subscribe” text, awkward spacing, inconsistent form styling
   Scope: ONLY the Jetpack form inside .rd-jetpack-subscribe
   ========================================================= */

#secondary .rd-jetpack-subscribe {
  margin-top: 10px !important;
}

/* Remove surprise margins Jetpack/Astra inject */
#secondary .rd-jetpack-subscribe form,
#secondary .rd-jetpack-subscribe p,
#secondary .rd-jetpack-subscribe .widget,
#secondary .rd-jetpack-subscribe .jetpack_subscription_widget {
  margin: 0 !important;
}

/* Email field */
#secondary .rd-jetpack-subscribe input[type="email"],
#secondary .rd-jetpack-subscribe input[type="text"] {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(27,78,116,.28) !important;
  background: #ffffff !important;

  font-family: var(--rd-sidebar-body-font) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: var(--rd-sidebar-ink) !important;

  margin: 12px 0 0 0 !important;
}

/* Kill any “label-like” styling Jetpack uses above the field */
#secondary .rd-jetpack-subscribe label {
  font-family: var(--rd-sidebar-body-font) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--rd-sidebar-muted) !important;
  margin: 0 0 6px 0 !important;
}

/* Submit button: force it back to normal button typography */
#secondary .rd-jetpack-subscribe input[type="submit"],
#secondary .rd-jetpack-subscribe button {
  width: 100% !important;
  box-sizing: border-box !important;

  margin: 12px 0 0 0 !important;
  padding: 12px 16px !important;

  background: var(--rd-sidebar-brand) !important;
  border: 1px solid var(--rd-sidebar-brand) !important;
  border-radius: 999px !important;

  color: #ffffff !important;
  text-decoration: none !important;

  /* This is the key: stop it from becoming a giant heading */
  font-family: var(--rd-sidebar-body-font) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: .2px !important;

  cursor: pointer !important;
  text-transform: none !important;
}

/* If Astra is turning inputs into “headline text”, this defeats it */
#secondary .rd-jetpack-subscribe input[type="submit"]::first-letter {
  text-transform: none !important;
}

/* =========================================================
   RD — SIDEBAR GOLD STANDARD v1.0
   SUBTLE SCALE & BREATHING REFINEMENT
   ========================================================= */

/* Slightly increase card breathing room */
.rd-sidebar-card .rd-card-inner {
  padding-top: 22px !important;
  padding-bottom: 22px !important;
}

/* Gently increase sidebar titles (desktop only) */
@media (min-width: 769px) {
  .rd-sidebar-title {
    font-size: 17px !important; /* was effectively ~16px */
    line-height: 1.35 !important;
  }
}

/* Improve body text readability without visual noise */
.rd-sidebar-text {
  font-size: 14.5px !important;
  line-height: 1.85 !important;
}

/* =========================================================
   RD — SEARCH WIDGET MICRO-ALIGNMENT
   ========================================================= */

.rd-sidebar-card:first-of-type {
  margin-top: 10px;
}

/* =========================================================
   RD — ARCHIVES WIDGET (GOLD STANDARD UPGRADE)
   Keep featured image. Modernize dropdown + spacing.
   Paste at END of Additional CSS.
   ========================================================= */

/* Ensure the Archives card follows the same inner rhythm */
.widget_archive,
.widget_archive .widget-title,
.widget_archive form {
  margin: 0 !important;
}

/* Keep your existing banner image setup untouched (if you already use ::before) */
.widget_archive::before {
  border-radius: 16px !important;
}

/* Dropdown: make it match RD pill inputs/buttons */
.widget_archive select,
.widget_archive .postform {
  width: 100% !important;
  padding: 14px 18px !important;

  font-family: "Merriweather", Georgia, serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;

  color: #1b4e74 !important;
  background-color: #ffffff !important;

  border: 1.5px solid #cfdbe6 !important;
  border-radius: 14px !important;

  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;

  /* RD chevron, consistent and crisp */
  background-image:
    linear-gradient(45deg, transparent 50%, #1b4e74 50%),
    linear-gradient(135deg, #1b4e74 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size:
    7px 7px,
    7px 7px;
  background-repeat: no-repeat !important;
}

/* Focus state: subtle, confident */
.widget_archive select:focus,
.widget_archive .postform:focus {
  outline: none !important;
  border-color: #1b4e74 !important;
}

/* Give the dropdown a little more top breathing room under the image */
.widget_archive form {
  padding-top: 10px !important;
}

/* Mobile: keep it bold but prevent it from feeling oversized */
@media (max-width: 768px) {
  .widget_archive select,
  .widget_archive .postform {
    font-size: 17px !important;
    padding: 13px 16px !important;
  }
}

.widget_archive select {
  font-weight: 600 !important; /* instead of 700 */
}

.widget_archive select {
  padding: 13px 16px !important; /* instead of 14px 18px */
}

/* =========================================================
   RD FINAL PATCH — MOBILE MENU OVERRIDES (ANTI-CONFLICT)
   These lines must remain near the end of the stylesheet.
   ========================================================= */
@media (max-width: 921px) {
  body.ast-header-break-point .ast-mobile-popup-drawer .main-header-menu .menu-item > .menu-link {
    display: block !important;
    float: none !important;
  }
}

/* =========================================================
   RD — MOBILE MENU FINAL POLISH (AUTHORITATIVE FIX)
   ========================================================= */

@media (max-width: 921px) {

  /* Pill refinement */
  .ast-mobile-popup-drawer .main-header-menu > li > a {
    padding: 14px 18px !important;
    margin: 12px auto !important;
    max-width: 86% !important;

    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 999px !important;

    font-family: "Merriweather", Georgia, serif !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    letter-spacing: 0.3px !important;

    color: #ffffff !important;
    box-shadow: none !important;
  }

  /* Remove chevron influence completely */
  .ast-mobile-popup-drawer .menu-item-has-children > a::after {
    display: none !important;
  }
}

@media (max-width: 921px) {

  /* =========================================================
     RD — MOBILE OFF‑CANVAS MENU (GOLD STANDARD · LOCKED)
     Scope: ONLY the Astra mobile drawer
     ========================================================= */

  body.ast-header-break-point .ast-mobile-popup-drawer .main-header-menu,
  body.ast-header-break-point .ast-mobile-popup-inner  .main-header-menu,
  body.ast-header-break-point .ast-mobile-popup-content .main-header-menu,
  body.ast-header-break-point .ast-mobile-popup        .main-header-menu {
    display: block !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
  }

  body.ast-header-break-point .ast-mobile-popup-drawer .main-header-menu > li,
  body.ast-header-break-point .ast-mobile-popup-inner  .main-header-menu > li,
  body.ast-header-break-point .ast-mobile-popup-content .main-header-menu > li,
  body.ast-header-break-point .ast-mobile-popup        .main-header-menu > li {
    position: relative !important; /* anchor point for toggle */
    margin: 0 0 14px 0 !important;
  }

  /* The "pill" link */
  body.ast-header-break-point .ast-mobile-popup-drawer .main-header-menu > li > a,
  body.ast-header-break-point .ast-mobile-popup-inner  .main-header-menu > li > a,
  body.ast-header-break-point .ast-mobile-popup-content .main-header-menu > li > a,
  body.ast-header-break-point .ast-mobile-popup        .main-header-menu > li > a {
    display: block !important;

    width: 86% !important;
    margin: 0 auto !important;

    /* equal left/right padding so the label stays visually centered,
       even with a right-side submenu toggle button */
    padding: 14px 56px !important;

    text-align: center !important;
    font-family: "Merriweather", Georgia, serif !important;
    font-weight: 700 !important;
    font-size: 22px !important;
    line-height: 1.25 !important;
    letter-spacing: 0.2px !important;

    color: #ffffff !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.28) !important;
    border-radius: 999px !important;

    box-shadow: none !important;
  }

  /* Kill Astra's default chevron pseudo-element (we control the toggle) */
  body.ast-header-break-point .ast-mobile-popup-drawer .menu-item-has-children > a::after,
  body.ast-header-break-point .ast-mobile-popup-inner  .menu-item-has-children > a::after,
  body.ast-header-break-point .ast-mobile-popup-content .menu-item-has-children > a::after,
  body.ast-header-break-point .ast-mobile-popup        .menu-item-has-children > a::after {
    display: none !important;
  }

  /* Submenu toggle: absolutely positioned so it NEVER pushes the label off-center */
  body.ast-header-break-point .ast-mobile-popup-drawer .ast-menu-toggle,
  body.ast-header-break-point .ast-mobile-popup-inner  .ast-menu-toggle,
  body.ast-header-break-point .ast-mobile-popup-content .ast-menu-toggle,
  body.ast-header-break-point .ast-mobile-popup        .ast-menu-toggle {
    position: absolute !important;
    right: 12% !important; /* aligns with pill edge (because pill width = 86%) */
    top: 50% !important;
    transform: translateY(-50%) !important;

    width: 42px !important;
    height: 42px !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;

    display: grid !important;
    place-items: center !important;

    opacity: 0.9 !important;
    z-index: 2 !important;
  }

  body.ast-header-break-point .ast-mobile-popup-drawer .ast-menu-toggle svg,
  body.ast-header-break-point .ast-mobile-popup-inner  .ast-menu-toggle svg,
  body.ast-header-break-point .ast-mobile-popup-content .ast-menu-toggle svg,
  body.ast-header-break-point .ast-mobile-popup        .ast-menu-toggle svg {
    fill: #ffffff !important;
    width: 16px !important;
    height: 16px !important;
  }

  /* Submenu list */
  body.ast-header-break-point .ast-mobile-popup-drawer .sub-menu,
  body.ast-header-break-point .ast-mobile-popup-inner  .sub-menu,
  body.ast-header-break-point .ast-mobile-popup-content .sub-menu,
  body.ast-header-break-point .ast-mobile-popup        .sub-menu {
    margin: 10px auto 0 auto !important;
    padding: 0 !important;
    width: 82% !important;
  }

  body.ast-header-break-point .ast-mobile-popup-drawer .sub-menu a,
  body.ast-header-break-point .ast-mobile-popup-inner  .sub-menu a,
  body.ast-header-break-point .ast-mobile-popup-content .sub-menu a,
  body.ast-header-break-point .ast-mobile-popup        .sub-menu a {
    display: block !important;
    text-align: center !important;
    padding: 12px 18px !important;
    margin: 10px 0 0 0 !important;

    font-family: "Open Sans", Arial, sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 1.3 !important;

    color: rgba(255,255,255,0.95) !important;
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    border-radius: 999px !important;

    box-shadow: none !important;
  }
}

/* RD Sidebar CTA buttons – force visible */
.rd-sidebar-card a,
.rd-sidebar-card a:visited {
  color:#FFFFFF !important;
}

.rd-sidebar-card a.rd-btn,
.rd-sidebar-card a.rd-calendar-btn,
.rd-sidebar-card a.wp-block-button__link,
.rd-sidebar-card a.button {
  background:#1B4E74 !important;
  border-color:#1B4E74 !important;
  color:#FFFFFF !important;
}

.rd-sidebar-card a.rd-btn:hover,
.rd-sidebar-card a.rd-calendar-btn:hover,
.rd-sidebar-card a.wp-block-button__link:hover,
.rd-sidebar-card a.button:hover {
  background:#0F2E46 !important;
  border-color:#0F2E46 !important;
  color:#FFFFFF !important;
}

/* =========================================
   RD FIX — Sidebar buttons invisible until hover
   Targets: Jetpack Subscribe + Confessional Calendar widget only
   Paste at END of Additional CSS
   ========================================= */

/* --- Jetpack Subscribe button (sidebar) --- */
.sidebar .jetpack_subscription_widget input[type="submit"],
.sidebar .jetpack_subscription_widget button[type="submit"],
.sidebar .jetpack_subscription_widget .components-button,
.sidebar .jetpack_subscription_widget .wp-block-button__link {
  appearance: none !important;
  -webkit-appearance: none !important;

  background-color: #0F2E46 !important;
  color: #FFFFFF !important;
  border: 1px solid #0F2E46 !important;

  opacity: 1 !important;
  visibility: visible !important;
  text-shadow: none !important;

  border-radius: 999px !important;
  padding: 12px 18px !important;
  line-height: 1 !important;

  transition: background-color .18s ease, border-color .18s ease, transform .06s ease !important;
}

/* Hover */
.sidebar .jetpack_subscription_widget input[type="submit"]:hover,
.sidebar .jetpack_subscription_widget button[type="submit"]:hover,
.sidebar .jetpack_subscription_widget .wp-block-button__link:hover {
  background-color: #1B4E74 !important;
  border-color: #1B4E74 !important;
  color: #FFFFFF !important;
}

/* Active */
.sidebar .jetpack_subscription_widget input[type="submit"]:active,
.sidebar .jetpack_subscription_widget button[type="submit"]:active,
.sidebar .jetpack_subscription_widget .wp-block-button__link:active {
  background-color: #0B2234 !important;
  border-color: #0B2234 !important;
  transform: translateY(1px) !important;
}

/* Focus (keyboard accessibility) */
.sidebar .jetpack_subscription_widget input[type="submit"]:focus,
.sidebar .jetpack_subscription_widget button[type="submit"]:focus,
.sidebar .jetpack_subscription_widget .wp-block-button__link:focus {
  outline: 2px solid rgba(27, 78, 116, .35) !important;
  outline-offset: 3px !important;
}


/* --- Confessional Calendar button (your custom class) --- */
#rd-calendar-widget .rd-calendar-btn,
#rd-calendar-widget a.rd-calendar-btn,
.sidebar #rd-calendar-widget .rd-calendar-btn,
.sidebar #rd-calendar-widget a.rd-calendar-btn {
  background-color: #0F2E46 !important;
  color: #FFFFFF !important;
  border: 1px solid #0F2E46 !important;

  opacity: 1 !important;
  visibility: visible !important;

  text-decoration: none !important;
  border-radius: 999px !important;
  padding: 12px 18px !important;
  line-height: 1 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  transition: background-color .18s ease, border-color .18s ease, transform .06s ease !important;
}

#rd-calendar-widget .rd-calendar-btn:hover,
#rd-calendar-widget a.rd-calendar-btn:hover {
  background-color: #1B4E74 !important;
  border-color: #1B4E74 !important;
  color: #FFFFFF !important;
}

#rd-calendar-widget .rd-calendar-btn:active,
#rd-calendar-widget a.rd-calendar-btn:active {
  background-color: #0B2234 !important;
  border-color: #0B2234 !important;
  transform: translateY(1px) !important;
}

#rd-calendar-widget .rd-calendar-btn:focus,
#rd-calendar-widget a.rd-calendar-btn:focus {
  outline: 2px solid rgba(27, 78, 116, .35) !important;
  outline-offset: 3px !important;
}

/* =========================================================
   RD FIX — Jetpack Subscribe button invisible until hover
   Scope: sidebar Jetpack/Subscriptions only
   ========================================================= */

/* 1) WordPress.com / Jetpack widget common markup */


/* Hover */


/* Active (tap/click) */


/* =========================================================
   Jetpack / Subscribe widget — kill two-tone hover block
   (keeps pill button, removes big blue rectangle on hover)
   ========================================================= */

/* 1) Make sure the wrapper around the submit button never paints a background */


/* (Cleanup) Removed an orphaned/truncated Jetpack submit selector header (no block). */
/* Covenant of Grace sidebar button — force blue CTA */
#rd-covenant-grace-widget .rd-covenant-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 18px;
  background-color: #1b4e74; /* RD navy */
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px; /* pill style */
  transition: background-color 0.2s ease, transform 0.15s ease;
}

/* Hover / focus */
#rd-covenant-grace-widget .rd-covenant-btn:hover,
#rd-covenant-grace-widget .rd-covenant-btn:focus {
  background-color: #163d5c;
  transform: translateY(-1px);
  text-decoration: none;
}

/* =========================================================
   RD Christian Calendar — Download Button (FINAL · LOCKED)
   Scope: ONLY the Christian Calendar page button wrapper
========================================================= */

#rd-cc-download {
  text-align: center !important;
  margin: 22px 0 10px !important;
}

/* The pill button */
#rd-cc-download a.rd-cc-download-btn,
#rd-cc-download a.rd-cc-download-btn:visited {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;

  background: #1B4E74 !important;
  color: #ffffff !important;
  text-decoration: none !important;

  padding: 18px 44px !important;
  border-radius: 999px !important;

  font-weight: 700 !important;
  font-size: 22px !important;
  line-height: 1 !important;
  letter-spacing: .2px !important;

  border: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
  text-shadow: none !important;

  opacity: 1 !important;
  visibility: visible !important;
}

/* Hover/focus */
#rd-cc-download a.rd-cc-download-btn:hover,
#rd-cc-download a.rd-cc-download-btn:focus {
  background: #163f5f !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Ensure inner text/icon never get “link colored” */
#rd-cc-download a.rd-cc-download-btn span {
  color: #ffffff !important;
}

/* Kill theme pseudo-elements/icons that hijack anchors */
#rd-cc-download a.rd-cc-download-btn::before,
#rd-cc-download a.rd-cc-download-btn::after {
  content: none !important;
  display: none !important;
}

/* RD Premium Gold Standard Download Button — Reformed Calendar page */
#rd-rc-download {
  text-align: center !important;
  margin: 2em 0 1.2em 0 !important;
}

#rd-rc-download a.rd-cc-download-btn,
#rd-rc-download a.rd-cc-download-btn:visited {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;

  background: #1B4E74 !important;
  color: #ffffff !important;
  text-decoration: none !important;

  padding: 18px 44px !important;
  border-radius: 999px !important;

  font-weight: 700 !important;
  font-size: 22px !important;
  letter-spacing: .2px !important;

  border: 0 !important;
  box-shadow: none !important;

  opacity: 1 !important;
  visibility: visible !important;
  line-height: 1 !important;

  background-image: none !important;
  text-shadow: none !important;
}

#rd-rc-download a.rd-cc-download-btn:hover,
#rd-rc-download a.rd-cc-download-btn:focus {
  background: #163f5f !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Explicit text node */
#rd-rc-download .rd-cc-download-text {
  display: inline-block !important;
  color: #ffffff !important;
  line-height: 1 !important;
}

/* Icon */
#rd-rc-download .rd-cc-download-icon {
  display: inline-block !important;
  font-size: 22px !important;
  line-height: 1 !important;
  color: #ffffff !important;
}

/* Kill theme pseudo-elements that hijack anchors */
#rd-rc-download a.rd-cc-download-btn::before,
#rd-rc-download a.rd-cc-download-btn::after {
  content: none !important;
  display: none !important;
}

/* If theme forces link color on inner spans */
#rd-rc-download a.rd-cc-download-btn span,
#rd-rc-download a.rd-cc-download-btn strong {
  color: #ffffff !important;
}

/* RD Tech Log Issue #23 — Bible Plan CTA visibility hardening
   Final solution uses: .rd-card-cta a.rd-btn
   This block is intentionally minimal and should not change appearance. */

#rd-bible-plan-widget .rd-card-cta .rd-btn,
#rd-bible-plan-widget .rd-card-cta .rd-btn:visited {
  opacity: 1 !important;
  visibility: visible !important;
}

#rd-bible-plan-widget .rd-card-cta .rd-btn::before,
#rd-bible-plan-widget .rd-card-cta .rd-btn::after {
  content: none !important;
  display: none !important;
}

/* RD Drop Cap – Brand Color Lock */
p.dropcap:first-letter {
  color: #1B4E74;
}

/* RD FIX — Pages rendering too narrow on mobile (Astra/WP.com)
   Scope: Pages only, mobile only
   Purpose: Force the actual content wrapper to use full available width
*/
@media (max-width: 921px) {

  /* Make sure the main Astra container isn't limiting width */
  body.page .site-content .ast-container {
    max-width: none !important;
    width: 100% !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  /* THIS is the usual choke point on Pages */
  body.page .site-main,
  body.page .site-main article,
  body.page .entry-content,
  body.page .rd-page,
  body.page .rd-page-body {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Ensure paragraphs aren't being rendered as narrow inline blocks */
  body.page .rd-page-body p {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
  }

  /* Override your inline hero image cap (works even against inline styles) */
  body.page .rd-hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 921px) {
  body.page .rd-page-body p {
    line-height: 1.75;
  }
}

/* RD FIX — Mobile post/page title typography balance */
@media (max-width: 921px) {

  body.single-post h1.entry-title,
  body.page h1.entry-title {
    font-size: 2.1rem;
    line-height: 1.25;
    max-width: 92%;
    margin-left: auto;
    margin-right: auto;
  }

}

/* RD Drop Cap – Mobile-Safe Refinement */
.rd-dropcap::first-letter {
  float: left;
  font-family: Merriweather, serif;
  font-size: 4.2em;
  line-height: 0.9;
  padding-right: 0.12em;
  padding-top: 0.04em;
  color: #1B4E74;
}

@media (max-width: 600px) {
  .rd-dropcap::first-letter {
    font-size: 3.4em;
    line-height: 0.95;
    padding-top: 0.02em;
  }
}

/* RD Mobile Title Override — Astra / WP.com */
@media (max-width: 768px) {

  .ast-single-post .entry-title,
  .ast-single-post .entry-title * {
    font-size: 1.85rem !important;
    line-height: 1.12 !important;
    text-align: center !important;
    max-width: 92% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    hyphens: none !important;
    word-break: normal !important;
  }

}

/* RD Divider — Footnotes & Section Breaks */
hr.rd-divider {
  border: none;
  height: 2px;
  background-color: #1B4E74;
  margin: 3em 0 2em;
  opacity: 1;
}

.rd-divider-crosses {
  text-align: center;
  margin: 36px 0 32px 0;
  font-size: 18px;
  letter-spacing: 10px;
  opacity: 0.65;
}

/* Match page container width to post width */
.page #content .ast-container {
    max-width: 1240px !important;
}

.page .entry-content {
    max-width: 880px !important;
}

/* Match page container width to post width */
.page #content .ast-container {
    max-width: 1240px !important;
}

.page .entry-content {
    max-width: 880px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Fix post font size and width on mobile */
@media (max-width: 768px) {
    .single-post .entry-content,
    .single-post .entry-content p {
        font-size: 17px !important;
        line-height: 1.8 !important;
    }

    .single-post #primary {
        padding-left: 16px !important;
        padding-right: 16px !important;
        max-width: 100% !important;
    }

    .single-post article {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Fix ast-plain-container extra padding */
    .ast-plain-container #content > .ast-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Fix oversized H2/H3 headings on mobile */
    .single-post .entry-content h2,
    .single-post .entry-content h3 {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }

    #page.hfeed .ast-single-entry-banner .ast-container h1.entry-title {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }
}

/* Mobile typography fix — RD site */
@media (max-width: 768px) {
  .entry-content p,
  .entry-content li {
    font-size: 15px !important;
    line-height: 1.75 !important;
  }
  .entry-content h2 {
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-top: 2em !important;
  }
  .entry-content h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin-top: 1.75em !important;
  }
}







/* Fix iPad mobile menu not displaying */
@media (max-width: 1024px) {
  .ast-mobile-menu-buttons .menu-toggle {
    display: flex !important;
  }
  
  #ast-mobile-header .main-header-bar-navigation,
  .ast-mobile-header-wrap .main-header-bar-navigation {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }
  
  .main-navigation .ast-flex,
  .main-header-menu {
    display: block !important;
  }

  .main-navigation ul,
  .main-navigation ul li {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
  }
}

/* ============================================
   SUBSCRIBE BUTTON - Gold Standard Design
   Updated March 29, 2026 - Final Polish
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&display=swap');

.rd-subscribe-btn:hover {
  background: #5BA3B8 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
  transform: translateY(-1px) scale(1.02);
  text-decoration: none !important;
}

.rd-subscribe-btn:visited,
.rd-subscribe-btn:active,
.rd-subscribe-btn:focus {
  color: #FFFFFF !important;
  text-decoration: none !important;
  outline: none;
}


/* ============================================
   MOBILE MENU - Subscribe Button
   Updated March 29, 2026 - Contained width
   ============================================ */

/* Hide Subscribe menu item on desktop nav */
@media (min-width: 922px) {
  .menu-item.menu-subscribe-btn {
    display: none !important;
  }
}

/* Style Subscribe as teal button in mobile menu - contained within menu panel */
.ast-builder-menu-mobile .menu-item.menu-subscribe-btn,
.ast-mobile-popup-content .menu-item.menu-subscribe-btn {
  margin-top: 12px !important;
}
.ast-builder-menu-mobile .menu-item.menu-subscribe-btn > .menu-link,
.ast-builder-menu-mobile .menu-item.menu-subscribe-btn > a,
.ast-mobile-popup-content .menu-item.menu-subscribe-btn > .menu-link,
.ast-mobile-popup-content .menu-item.menu-subscribe-btn > a {
  background: #4A8FA8 !important;
  color: #FFFFFF !important;
  font-family: 'Montserrat', 'Inter', Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  text-align: center !important;
  text-decoration: none !important;
  padding: 14px 24px !important;
  border-radius: 4px !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
  justify-content: center !important;
}
.ast-builder-menu-mobile .menu-item.menu-subscribe-btn > .menu-link:hover,
.ast-builder-menu-mobile .menu-item.menu-subscribe-btn > a:hover,
.ast-builder-menu-mobile .menu-item.menu-subscribe-btn > .menu-link:active,
.ast-builder-menu-mobile .menu-item.menu-subscribe-btn > a:active,
.ast-mobile-popup-content .menu-item.menu-subscribe-btn > .menu-link:hover,
.ast-mobile-popup-content .menu-item.menu-subscribe-btn > a:hover {
  background: #5BA3B8 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
  text-decoration: none !important;
}
/* Hide the dropdown toggle arrow on Subscribe button */
.menu-item.menu-subscribe-btn .ast-menu-toggle,
.menu-item.menu-subscribe-btn .dropdown-menu-toggle {
  display: none !important;
}

/* ============================================
   SEQUEL ARTICLE BOX - CTA Button
   Added March 29, 2026
   ============================================ */
.entry-content .rd-sequel-box a,
.ast-article-single .entry-content .rd-sequel-box a,
div.entry-content div.rd-sequel-box a {
  display: inline-block !important;
  background: #4A8FA8 !important;
  color: #FFFFFF !important;
  font-family: 'Montserrat', 'Inter', Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  text-decoration: none !important;
  padding: 10px 24px !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.25s ease !important;
}
.entry-content .rd-sequel-box a:hover,
.entry-content .rd-sequel-box a:active,
.ast-article-single .entry-content .rd-sequel-box a:hover {
  background: #5BA3B8 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  transform: translateY(-1px) !important;
  text-decoration: none !important;
}
.entry-content .rd-sequel-box a:visited,
.ast-article-single .entry-content .rd-sequel-box a:visited {
  color: #FFFFFF !important;
  text-decoration: none !important;
}

/* ═══════════════════════════════════════════════════════════
   RD Hero Banner — About & Mission Statement Pages
   ═══════════════════════════════════════════════════════════ */

/* Hide the default page title on hero pages */
.page-id-1562 .entry-header,
.page-id-1660 .entry-header {
  display: none !important;
}

/* Remove top whitespace on hero pages */
.page-id-1562 .site-content,
.page-id-1660 .site-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.page-id-1562 .ast-container,
.page-id-1660 .ast-container {
  padding-top: 0 !important;
}

.page-id-1562 .content-area,
.page-id-1660 .content-area {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* Kill empty paragraph gaps before hero banners */
.page-id-1562 .entry-content p:empty,
.page-id-1660 .entry-content p:empty,
.page-id-1562 article.rd-page > p:empty,
.page-id-1660 .entry-content > p:first-child {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
  height: 0 !important;
}

/* Ensure hero sits flush under nav */
.page-id-1562 .entry-content,
.page-id-1660 .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.page-id-1562 article.rd-page,
.page-id-1660 article.rd-page {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Hero Banner Container */
.rd-hero-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 55vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5em;
  margin-top: 0;
  overflow: hidden;
}

/* Dark overlay for text readability */
.rd-hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(27, 78, 114, 0.55) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
  z-index: 1;
}

/* Hero Title Text */
.page .entry-content .rd-hero-banner h2,
.entry-content .rd-hero-banner h2,
.rd-hero-banner h2 {
  position: relative;
  z-index: 2;
  color: #FFFFFF !important;
  font-family: 'Lora', 'Georgia', serif;
  font-size: 3.2em;
  font-weight: 700;
  text-align: center;
  text-shadow: 2px 3px 12px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.02em;
  padding: 0 1.5em;
  margin: 0;
  line-height: 1.3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .rd-hero-banner {
    min-height: 40vh;
  }
  .rd-hero-banner h2 {
    font-size: 2em;
    padding: 0 1em;
  }
}

@media (max-width: 480px) {
  .rd-hero-banner {
    min-height: 35vh;
  }
  .rd-hero-banner h2 {
    font-size: 1.6em;
  }
}

/* Fix: Jetpack Instant Search overlay blocking clicks when hidden */
.jetpack-instant-search.is-hidden {
	    pointer-events: none !important;
}

/* =============================================
   HEADER NAV VISUAL CENTERING
   Shifts nav 16px left to visually center it
   between the logo and Subscribe button. The logo
   is narrower than Subscribe, so without this the
   nav appears right-heavy.
   Added March 30, 2026
   ============================================= */
@media (min-width: 921px) {
  .ast-desktop .ast-primary-header-bar .site-header-primary-section-center,
  .ast-desktop .ast-primary-header .site-header-primary-section-center {
    transform: translateX(-16px) !important;
  }
}

/* Fix: Hidden nav sub-menus blocking footer clicks */
.ast-desktop .sub-menu {
	    pointer-events: none !important;
}
.ast-desktop li.menu-item:hover > .sub-menu,
.ast-desktop li.menu-item:focus-within > .sub-menu,
.ast-desktop .sub-menu[style*="visibility: visible"] {
	    pointer-events: auto !important;
}

/* Fix: Jetpack overlay - broader selector */
.jetpack-instant-search__overlay:not(.is-visible) {
	    pointer-events: none !important;
}
}
}
}

/* ==========================================================
   SIDEBAR COLOR POLISH — April 1, 2026
   Aligns all sidebar widgets to RD navy brand palette.
   Changes: headings to navy, Contributors accent bar,
   Stay Connected dark treatment, NAPARC hr fix,
   button hover effects, Archives dropdown polish.
   ========================================================== */

/* --- 1. Widget headings: gray → navy on white-bg cards --- */
.sidebar-main .rd-sidebar-card .rd-card-title {
  color: #1B4E74 !important;
}

/* --- 2. Contributors widget: navy top accent bar --- */
#custom_html-70 .rd-sidebar-card {
  border-top: 4px solid #1B4E74;
}

/* --- 3. Stay Connected: dark navy treatment --- */
#custom_html-78 .rd-sidebar-card {
  background: #0F1F3D !important;
  border-color: rgba(201,168,76,.25) !important;
}
#custom_html-78 .rd-sidebar-card .rd-card-title {
  color: #F0EAD8 !important;
}
#custom_html-78 .rd-sidebar-card .rd-card-text {
  color: #B8C8E0 !important;
}
#custom_html-78 .rd-sidebar-card .rd-btn {
  background: transparent !important;
  border: 1px solid #C9A84C !important;
  color: #ffffff !important;
}
#custom_html-78 .rd-sidebar-card .rd-btn:hover {
  background: rgba(201,168,76,.15) !important;
}

/* --- 4. NAPARC hr: kill off-palette #CCC default bg --- */
#custom_html-80 hr {
  background-color: transparent !important;
}

/* --- 5. Button hover effects on white-bg cards --- */
.sidebar-main .rd-sidebar-card .rd-btn {
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.sidebar-main .rd-sidebar-card .rd-btn:hover {
  background: #163D5C !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(15,31,61,.25);
}

/* --- 6. Dark-bg widget button hover (Vault, NAPARC, Contact) --- */
#custom_html-1775068870 a[style*="border"]:hover,
#custom_html-80 a[style*="border"]:hover,
#custom_html-1775068868 a[style*="border"]:hover {
  background: rgba(201,168,76,.15) !important;
}

/* --- 7. Archives dropdown: navy-branded --- */
#archives-5 select {
  border-color: rgba(27,78,116,.4) !important;
}
#archives-5 select:focus {
  border-color: #1B4E74 !important;
  box-shadow: 0 0 0 2px rgba(27,78,116,.15);
  outline: none;
}

/* ==========================================================
   SIDEBAR REFINEMENTS — April 1, 2026 (Round 2)
   ========================================================== */

/* --- 1. Card hover: subtle lift on white-bg cards --- */
.sidebar-main .rd-sidebar-card {
  transition: box-shadow .25s ease, transform .25s ease;
}
.sidebar-main .rd-sidebar-card:hover {
  box-shadow: 0 14px 32px rgba(15,31,61,.13);
  transform: translateY(-2px);
}

/* --- 2. Contributors: CSS-driven colors (override inline) --- */
#custom_html-70 .rd-family-title {
  color: #1B4E74 !important;
}
#custom_html-70 .rd-people a {
  color: #1B4E74 !important;
}
#custom_html-70 .rd-sidebar-card .rd-card-text {
  color: var(--rd-sidebar-muted) !important;
}

/* --- 3. Covenant blockquote polish --- */
#custom_html-58 [style*="border-left"] {
  border-left-width: 3px !important;
  border-left-color: rgba(27,78,116,.65) !important;
}

/* --- 4. Archives dropdown hover & smooth --- */
#archives-5 select {
  transition: border-color .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
#archives-5 select:hover {
  border-color: rgba(27,78,116,.6) !important;
}

/* --- 5. Search widget sidebar polish --- */
.sidebar-main #search-3 .search-form {
  position: relative;
}
.sidebar-main #search-3 .search-field {
  border: 1.5px solid rgba(27,78,116,.35) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  color: #364151 !important;
  font-size: 14px !important;
  padding: 11px 44px 11px 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color .2s ease, box-shadow .2s ease;
  font-family: var(--rd-sidebar-body-font);
}
.sidebar-main #search-3 .search-field::placeholder {
  color: rgba(27,78,116,.45);
}
.sidebar-main #search-3 .search-field:focus {
  border-color: #1B4E74 !important;
  box-shadow: 0 0 0 2px rgba(27,78,116,.12);
  outline: none;
}
.sidebar-main #search-3 .search-submit {
  position: absolute !important;
  right: 6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: #1B4E74 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 7px 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background .2s ease;
}
.sidebar-main #search-3 .search-submit:hover {
  background: #163D5C !important;
}

/* --- 6. Dark-card hover suppression (no lift on dark bg) --- */
#custom_html-1775068870 .rd-sidebar-card:hover,
#custom_html-80 .rd-sidebar-card:hover,
#custom_html-1775068868 .rd-sidebar-card:hover,
#custom_html-78 .rd-sidebar-card:hover {
  transform: none;
}


/* ==========================================================
   MOBILE SEARCH FIX + FOOTER POLISH — April 1, 2026
   ========================================================== */

/* --- 1. Search submit button: fix clipping on mobile --- */
@media (max-width: 768px) {
  .sidebar-main #search-3 .search-submit {
    padding: 7px 10px !important;
    font-size: 0 !important;
    width: 34px !important;
    min-width: 34px !important;
    border-radius: 8px !important;
    right: 5px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 16px !important;
  }
  .sidebar-main #search-3 .search-field {
    padding-right: 42px !important;
  }
}

/* --- 2. Footer Subscribe button: gold CTA to match sidebar --- */
.site-footer .wp-block-jetpack-subscriptions form .wp-block-button .wp-block-button__link,
.site-footer .jetpack_subscription_widget .wp-block-button .wp-block-button__link,
.site-footer input[type="submit"][name="jetpack_subscriptions_widget"] {
  background: #C9A84C !important;
  color: #0F1F3D !important;
  border: none !important;
  font-weight: 600 !important;
  letter-spacing: .5px !important;
  transition: background .2s ease;
}
.site-footer .wp-block-jetpack-subscriptions form .wp-block-button .wp-block-button__link:hover,
.site-footer .jetpack_subscription_widget .wp-block-button .wp-block-button__link:hover,
.site-footer input[type="submit"][name="jetpack_subscriptions_widget"]:hover {
  background: #B8972F !important;
}

/* --- 3. Footer category links: cream on dark bg --- */
.site-footer a {
  transition: color .2s ease, opacity .2s ease;
}
.site-footer a:hover {
  color: #C9A84C !important;
}

/* --- 4. Footer copyright text: muted cream --- */
.ast-footer-copyright p,
.site-footer .ast-builder-layout-element .ast-footer-copyright {
  color: rgba(240,234,216,.55) !important;
}

/* ===========================================
   FIX: Search submit button overlapping Astra
   magnifying glass icon in sidebar widget.
   Date: April 3, 2026
   Solution: Hide button text and emoji pseudo-
   element; let Astra form::after icon be the
   visual indicator; make button a transparent
   clickable overlay on the icon.
   =========================================== */
.sidebar-main #search-3 .search-form .search-submit,
.sidebar-main .widget_search .search-form .search-submit,
.search-form input[type="submit"].search-submit {
  font-size: 0 !important;
  color: transparent !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: 34px !important;
  height: 34px !important;
  max-width: none !important;
  padding: 0 !important;
  position: absolute !important;
  right: 5px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  cursor: pointer !important;
  z-index: 1 !important;
  overflow: hidden !important;
  border-radius: 0 !important;
}
.sidebar-main #search-3 .search-form .search-submit::before,
.sidebar-main .widget_search .search-form .search-submit::before {
  display: none !important;
}


/* ═══ RD Header — Nav Centering Fix for Visual Symmetry (April 2026) ═══ */
.main-header-bar .ast-builder-grid-row.ast-grid-center-col-layout {
  grid-template-columns: auto 1fr auto !important;
}
.main-header-bar .site-header-primary-section-center {
  justify-content: flex-end !important;
}
.main-header-bar .main-header-menu {
  margin-left: auto !important;
  gap: 0 !important;
}

/* ═══ RD Search Bar — Size Override for Header Symmetry (April 2026) ═══ */
#rd-search-trigger {
  padding: 3px 8px !important;
  min-width: auto !important;
  max-width: 130px !important;
  font-size: 10px !important;
  gap: 4px !important;
  height: auto !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}
#rd-search-trigger svg {
  width: 11px !important;
  height: 11px !important;
  flex-shrink: 0 !important;
}
#rd-search-trigger .rd-kbd {
  font-size: 7px !important;
  padding: 1px 3px !important;
  flex-shrink: 0 !important;
}
#rd-search-trigger .rd-label {
  font-size: 10px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 55px !important;
  display: inline-block !important;
}
.rd-search-menu-item {
  padding: 0 4px !important;
}