/* ==== Ravitz blog grid (on /blog/ page) ==== */
.wp-block-query .wp-block-post-template {
  gap: 2rem;
}

.wp-block-query .wp-block-post-template > li.wp-block-post {
  background: #1e2129;
  border-radius: 16px;
  overflow: hidden;
  padding: 0 0 1.5rem 0;
  transition: transform .25s ease, box-shadow .25s ease;
  list-style: none;
}

.wp-block-query .wp-block-post-template > li.wp-block-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,.35);
}

.wp-block-query .wp-block-post-featured-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin: 0 0 1.25rem 0;
}

.wp-block-query .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wp-block-query .wp-block-post-date,
.wp-block-query .wp-block-post-title,
.wp-block-query .wp-block-post-excerpt {
  padding: 0 1.5rem;
}

.wp-block-query .wp-block-post-date {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #8A94A6;
  margin: 0 0 .5rem 0;
}

.wp-block-query .wp-block-post-title {
  font-size: 1.375rem;
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 .75rem 0;
  color: #F6F3EE;
}

.wp-block-query .wp-block-post-title a {
  color: inherit;
  text-decoration: none;
}

.wp-block-query .wp-block-post-title a:hover {
  color: #FF6A3D;
}

.wp-block-query .wp-block-post-excerpt {
  font-size: .95rem;
  line-height: 1.55;
  color: #C3C7CF;
}

.wp-block-query .wp-block-post-excerpt__more-link {
  color: #FF6A3D;
  font-weight: 500;
  text-decoration: none;
}

/* ==== Single post: editorial reading layout ==== */

.single-post .site-main,
.single-post .ast-article-single,
.single-post article.post,
.single-post .entry-header,
.single-post .entry-content,
.single-post .ast-single-post-header,
.single-post .post-thumb-img-content {
  background: #F6F3EE !important;
  color: #14161B;
}

.single-post .entry-header {
  padding: 4rem 1.5rem 2rem;
}

.single-post .entry-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: #14161B !important;
  margin-bottom: 1rem;
}

.single-post .entry-meta,
.single-post .post-meta {
  color: #5B6370 !important;
  font-size: 0.9rem;
}

.single-post .entry-meta a,
.single-post .post-meta a {
  color: #14161B !important;
}

.single-post .entry-content {
  padding: 0 clamp(24px, 4vw, 48px) 4rem !important;
  max-width: 780px !important;
  margin: 0 auto !important;
}

.single-post .ast-article-single,
.single-post .ast-container {
  max-width: 1240px !important;
}

.single-post .entry-header {
  max-width: 780px !important;
}

.single-post .entry-content p,
.single-post .entry-content li {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #14161B;
}

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

.single-post .entry-content h2 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: #14161B !important;
}

.single-post .entry-content h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #14161B !important;
}

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

.single-post .entry-content .wp-block-image img {
  border-radius: 8px;
}

.single-post .entry-meta *,
.single-post .post-meta *,
.single-post .ast-post-date,
.single-post .posted-on,
.single-post .entry-date,
.single-post .published,
.single-post .updated,
.single-post time,
.single-post .ast-author-name {
  color: #5B6370 !important;
}

.single-post .entry-meta a,
.single-post .post-meta a,
.single-post .ast-author-name a,
.single-post .url.fn.n {
  color: #14161B !important;
  text-decoration: none;
}

.single-post .ast-author-avatar,
.single-post .author-avatar,
.single-post .entry-meta img.avatar,
.single-post .post-meta img.avatar,
.single-post .entry-meta .avatar,
.single-post .post-meta .avatar {
  display: none !important;
}

/* ==== Homepage: editorial surface ==== */

body.home .site-content,
body.home .ast-container,
body.home .ast-container-narrow,
body.home article.page,
body.home .entry-content {
  background: #F6F3EE !important;
  color: #14161B;
  max-width: none;
}

body.home .entry-header,
body.home .ast-single-post-header,
body.home .ast-archive-title,
body.home .post-thumb,
body.home .ast-title-bar-wrap {
  display: none !important;
}

body.home .site-content .ast-container {
  padding-left: 0;
  padding-right: 0;
  max-width: 1200px;
  margin: 0 auto;
}

body.home .entry-content > * {
  margin-top: 0;
  margin-bottom: 0;
}

/* Hero */

.rv-hero {
  position: relative;
  min-height: clamp(440px, 60vh, 640px);
  padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 48px);
  overflow: hidden;
  background: #F6F3EE;
  isolation: isolate;
}

.rv-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: auto;
}

.rv-hero-text {
  position: relative;
  z-index: 2;
  pointer-events: none;
  max-width: 680px;
}

.rv-hero-title {
  font-size: clamp(36px, 6vw, 72px) !important;
  line-height: 1.02 !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em !important;
  margin: 0 !important;
  color: #14161B !important;
}

.rv-hero-title em {
  font-style: italic;
}

.rv-hero-title em.rv-hero-ai {
  color: #FF6A3D !important;
  font-style: italic !important;
}

.rv-hero-ctas {
  display: flex;
  gap: 32px;
  margin-top: clamp(32px, 5vw, 56px);
  font-size: 14px;
  letter-spacing: 0.02em;
  pointer-events: auto;
  position: relative;
  z-index: 3;
  flex-wrap: wrap;
}

.rv-hero-cta {
  color: #14161B !important;
  text-decoration: none !important;
  border-bottom: 1px solid #14161B;
  padding-bottom: 4px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.rv-hero-cta:hover {
  color: #FF6A3D !important;
  border-bottom-color: #FF6A3D;
}

@media (max-width: 760px) {
  .rv-hero {
    min-height: auto;
    padding: clamp(56px, 14vw, 96px) clamp(20px, 5vw, 32px);
  }

  .rv-hero-canvas {
    display: none !important;
  }

  .rv-hero-text {
    max-width: none;
  }

  .rv-hero-title {
    font-size: clamp(32px, 8vw, 52px) !important;
  }

  .rv-hero-ctas {
    gap: 20px;
    margin-top: 32px;
  }

  .rv-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 32px;
  }

  body.home .rv-posts-feed .wp-block-post-template > li.wp-block-post {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding: 20px 0 !important;
    grid-template-columns: none !important;
  }

  body.home .rv-posts-feed .wp-block-post-template > li.wp-block-post::before {
    font-size: 10px !important;
    color: #5B6370 !important;
    letter-spacing: 0.06em !important;
    grid-column: unset !important;
    grid-row: unset !important;
  }

  body.home .rv-posts-feed .wp-block-post-template > li.wp-block-post > * {
    grid-column: unset !important;
    grid-row: unset !important;
    width: 100% !important;
  }

  body.home .rv-posts-feed .wp-block-post-template .wp-block-post-title {
    font-size: 20px !important;
    line-height: 1.25 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    grid-column: unset !important;
    grid-row: unset !important;
  }

  body.home .rv-posts-feed .wp-block-post-template .wp-block-post-date {
    text-align: left !important;
    font-size: 10px !important;
    margin-top: 4px !important;
    grid-column: unset !important;
    grid-row: unset !important;
  }

  .rv-workwithus {
    padding: 56px 24px;
  }

  .rv-workwithus-copy {
    font-size: 22px;
  }

  /* Mobile: push Privacy Policy to the bottom of the footer menu stack */
  .site-footer .ast-footer-menu,
  .site-footer .menu,
  .site-footer nav ul {
    display: flex !important;
    flex-direction: column !important;
  }

  .site-footer .ast-footer-menu .menu-item:has(a[href*="privacy"]),
  .site-footer .menu .menu-item:has(a[href*="privacy"]),
  .site-footer nav ul li:has(a[href*="privacy"]) {
    order: 99 !important;
  }
}

/* Recent Writing */

.rv-recent-writing {
  padding: 56px clamp(20px, 4vw, 48px) 80px !important;
  border-top: 0.5px solid rgba(20,22,27,0.1);
  background: #F6F3EE;
  max-width: 1200px;
  margin: 0 auto;
}

.rv-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 48px;
  gap: 16px;
}

.rv-section-label {
  font-size: 12px;
  color: #5B6370;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rv-section-link {
  font-size: 12px;
  color: #14161B !important;
  letter-spacing: 0.02em;
  text-decoration: none !important;
}

.rv-section-link:hover {
  color: #FF6A3D !important;
}

body.home .rv-posts-feed .wp-block-post-template {
  display: grid;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: rvpost calc(var(--total-posts, 1) + 1);
}

body.home .rv-posts-feed .wp-block-post-template > li.wp-block-post {
  display: grid;
  grid-template-columns: 80px 1fr 120px;
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 0.5px solid rgba(20,22,27,0.1);
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: none !important;
  transform: none !important;
  counter-increment: rvpost -1;
  list-style: none;
}

body.home .rv-posts-feed .wp-block-post-template > li.wp-block-post:hover {
  transform: none !important;
  box-shadow: none !important;
}

body.home .rv-posts-feed .wp-block-post-template > li.wp-block-post::before {
  content: counter(rvpost, decimal-leading-zero);
  font-size: 11px;
  color: #5B6370;
  letter-spacing: 0.06em;
  grid-column: 1;
  grid-row: 1;
  padding: 0;
}

body.home .rv-posts-feed .wp-block-post-template > li.wp-block-post > * {
  grid-column: 2;
  padding: 0 !important;
  margin: 0 !important;
}

body.home .rv-posts-feed .wp-block-post-template .wp-block-post-title {
  font-size: clamp(22px, 3vw, 32px) !important;
  line-height: 1.1 !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  color: #14161B !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.home .rv-posts-feed .wp-block-post-template .wp-block-post-title a {
  color: inherit !important;
  text-decoration: none !important;
}

body.home .rv-posts-feed .wp-block-post-template .wp-block-post-title a:hover {
  color: #FF6A3D !important;
}

body.home .rv-posts-feed .wp-block-post-template .wp-block-post-date {
  grid-column: 3 !important;
  grid-row: 1 !important;
  text-align: right;
  font-size: 11px !important;
  color: #5B6370 !important;
  letter-spacing: 0.06em;
  margin: 0 !important;
  padding: 0 !important;
}

/* Work With Us band */

.rv-workwithus {
  padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 48px);
  border-top: 0.5px solid rgba(20,22,27,0.1);
  background: #EFEBE2;
  max-width: none;
}

.rv-workwithus-label {
  font-size: 13px;
  color: #5B6370;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.rv-workwithus-copy {
  font-size: clamp(24px, 3.5vw, 42px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 900px;
  color: #14161B;
  margin: 0 auto;
}

.rv-workwithus-copy em {
  font-style: italic;
}

.rv-workwithus-copy a {
  color: #14161B !important;
  text-decoration: none !important;
  border-bottom: 2px solid #FF6A3D;
  padding-bottom: 2px;
}

.rv-workwithus-copy a:hover {
  color: #FF6A3D !important;
}

/* ==== Site header: editorial nav ==== */

.site-header,
.ast-primary-header-bar,
.main-header-bar,
.ast-below-header,
.ast-above-header,
.site-header .main-header-bar-wrap,
.ast-header-break-point .main-header-bar,
.site-header .ast-container,
.site-header [class*="ast-builder-grid-row"],
.site-header [class*="ast-builder-grid-row"] > div,
.ast-builder-menu-1,
.ast-builder-menu-1-inner,
.ast-builder-menu,
.ast-builder-menu-inner,
.site-header-primary-section-left,
.site-header-primary-section-center,
.site-header-primary-section-right,
.main-header-bar-navigation,
.ast-mobile-header-wrap,
[class*="ast-flex"],
.site-header [data-section] {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.site-header,
.site-header > .ast-main-header-bar-wrap,
.site-header .main-header-bar,
.ast-primary-header-bar {
  background: #F6F3EE !important;
  background-color: #F6F3EE !important;
  border-bottom: 0.5px solid rgba(20, 22, 27, 0.08) !important;
}

.main-header-bar {
  padding-top: 14px;
  padding-bottom: 14px;
}

.ast-builder-menu-1 .menu-item > a,
.main-header-menu > li > a,
.main-header-bar .main-header-menu a,
.main-header-bar .main-header-menu .menu-link {
  color: #14161B !important;
  font-size: 14px !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  font-weight: 400 !important;
  background: transparent !important;
}

.ast-builder-menu-1 .menu-item > a:hover,
.main-header-menu > li > a:hover,
.main-header-bar .main-header-menu a:hover {
  color: #FF6A3D !important;
  background: transparent !important;
}

.ast-builder-menu-1 .current-menu-item > a,
.main-header-menu .current-menu-item > a {
  color: #FF6A3D !important;
}

.site-header .ast-site-identity,
.site-header .site-branding {
  background: transparent !important;
}

.site-header .ast-logo-svg-inline svg,
.site-header .ast-site-title,
.site-header .site-title a {
  color: #14161B !important;
}

/* Get Started button — convert to an understated outline link */
.ast-custom-button,
.main-header-bar .ast-custom-button,
.ast-header-button-1 .ast-custom-button,
.header-widget-area .wp-block-button__link,
.site-header .wp-block-button__link {
  background: transparent !important;
  color: #14161B !important;
  border: 1px solid #14161B !important;
  border-radius: 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  padding: 9px 18px !important;
  box-shadow: none !important;
  text-transform: none !important;
  transition: background 0.18s ease, color 0.18s ease;
}

.ast-custom-button:hover,
.main-header-bar .ast-custom-button:hover,
.ast-header-button-1 .ast-custom-button:hover {
  background: #14161B !important;
  color: #F6F3EE !important;
  border-color: #14161B !important;
}

/* ==== Mobile + narrow-desktop hamburger menu ==== */

/* Mobile header container */
.ast-mobile-header-wrap,
.ast-mobile-header-wrap .main-header-bar,
.ast-mobile-header-wrap .main-header-bar-wrap,
.ast-mobile-header-wrap .ast-container {
  background: #F6F3EE !important;
  border-bottom: 0.5px solid rgba(20, 22, 27, 0.08) !important;
  box-shadow: none !important;
}

/* Hamburger button */
.ast-mobile-menu-buttons,
.ast-mobile-menu-buttons button,
.menu-toggle,
.ast-builder-menu-toggle,
.ast-mobile-menu-buttons-minimal,
.ast-mobile-menu-buttons-fill,
.ast-mobile-menu-buttons-outline {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  color: #14161B !important;
  padding: 8px 12px !important;
  box-shadow: none !important;
  transition: color 0.18s ease !important;
}

.ast-mobile-menu-buttons button:hover,
.ast-mobile-menu-buttons button:focus,
.menu-toggle:hover,
.menu-toggle:focus,
.ast-builder-menu-toggle:hover {
  background: transparent !important;
  color: #FF6A3D !important;
  outline: none !important;
  box-shadow: none !important;
}

.ast-mobile-menu-buttons svg,
.menu-toggle svg,
.ast-builder-menu-toggle svg,
.ast-mobile-menu-trigger-minimal svg {
  color: inherit !important;
  fill: currentColor !important;
  width: 22px !important;
  height: 22px !important;
}

/* Drawer / popup shell */
.ast-mobile-popup-drawer,
.ast-mobile-popup-drawer .ast-mobile-popup-content,
.ast-mobile-popup-drawer .ast-mobile-popup-inner,
.ast-mobile-popup-content,
.main-navigation.ast-mobile-menu-opened,
.ast-desktop-togglled-on .main-navigation.toggle-on {
  background: #F6F3EE !important;
  background-color: #F6F3EE !important;
  box-shadow: none !important;
}

.ast-mobile-popup-drawer {
  border-left: 0.5px solid rgba(20, 22, 27, 0.08) !important;
}

/* Drawer header (with close X) */
.ast-mobile-popup-drawer .ast-mobile-popup-header,
.ast-mobile-popup-drawer .ast-builder-menu-mobile-close {
  padding: 18px 24px !important;
  background: transparent !important;
  border-bottom: 0.5px solid rgba(20, 22, 27, 0.08) !important;
}

/* Close button */
.ast-mobile-popup-drawer .menu-toggle-close,
.ast-mobile-popup-drawer .ast-mobile-popup-close,
.menu-toggle-close {
  background: transparent !important;
  color: #14161B !important;
  border: none !important;
  box-shadow: none !important;
  padding: 12px !important;
  font-size: 22px !important;
  line-height: 1 !important;
  transition: color 0.18s ease !important;
}

.ast-mobile-popup-drawer .menu-toggle-close:hover,
.menu-toggle-close:hover {
  color: #FF6A3D !important;
  background: transparent !important;
}

.ast-mobile-popup-drawer .menu-toggle-close svg {
  width: 20px !important;
  height: 20px !important;
  fill: currentColor !important;
}

/* Menu list inside drawer */
.ast-mobile-popup-drawer .main-header-menu,
.ast-mobile-popup-drawer ul.main-header-menu,
.ast-mobile-popup-drawer nav ul,
.main-navigation.ast-mobile-menu-opened ul {
  background: transparent !important;
  padding: 8px 0 0 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.ast-mobile-popup-drawer .main-header-menu > li,
.ast-mobile-popup-drawer ul.main-header-menu > li,
.main-navigation.ast-mobile-menu-opened > ul > li {
  border-bottom: 0.5px solid rgba(20, 22, 27, 0.08) !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ast-mobile-popup-drawer .main-header-menu > li > a,
.ast-mobile-popup-drawer .menu-item > a,
.ast-mobile-popup-drawer li > a.menu-link,
.main-navigation.ast-mobile-menu-opened > ul > li > a {
  color: #14161B !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  padding: 20px 28px !important;
  display: block !important;
  text-decoration: none !important;
  background: transparent !important;
  text-transform: none !important;
  line-height: 1.2 !important;
  transition: color 0.18s ease, background 0.18s ease !important;
}

.ast-mobile-popup-drawer .main-header-menu > li > a:hover,
.ast-mobile-popup-drawer .menu-item > a:hover,
.ast-mobile-popup-drawer .current-menu-item > a {
  color: #FF6A3D !important;
  background: transparent !important;
}

/* Sub-menu dropdowns within drawer (if added later) */
.ast-mobile-popup-drawer .sub-menu,
.ast-mobile-popup-drawer .children,
.ast-mobile-popup-drawer .menu-item-has-children .sub-menu {
  background: rgba(20, 22, 27, 0.02) !important;
  border-left: 2px solid rgba(20, 22, 27, 0.08) !important;
  margin: 0 0 0 28px !important;
  padding: 4px 0 !important;
}

.ast-mobile-popup-drawer .sub-menu > li {
  border: none !important;
}

.ast-mobile-popup-drawer .sub-menu > li > a {
  font-size: 16px !important;
  font-weight: 400 !important;
  padding: 12px 24px !important;
  color: #5B6370 !important;
}

.ast-mobile-popup-drawer .sub-menu > li > a:hover {
  color: #FF6A3D !important;
}

/* Dropdown caret/toggle arrow */
.ast-mobile-popup-drawer .ast-menu-toggle,
.ast-mobile-popup-drawer .menu-item-has-children > .ast-menu-toggle,
.ast-mobile-popup-drawer button.ast-menu-toggle {
  color: #14161B !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 20px !important;
}

.ast-mobile-popup-drawer .ast-menu-toggle:hover {
  color: #FF6A3D !important;
  background: transparent !important;
}

/* Drawer button/CTA if present (Get Started in mobile) */
.ast-mobile-popup-drawer .ast-custom-button,
.ast-mobile-popup-drawer .wp-block-button__link,
.ast-mobile-popup-drawer .wp-element-button {
  background: transparent !important;
  color: #14161B !important;
  border: 1px solid #14161B !important;
  border-radius: 0 !important;
  font-size: 14px !important;
  padding: 12px 24px !important;
  margin: 24px 28px !important;
  box-shadow: none !important;
  font-weight: 500 !important;
  display: inline-block !important;
}

.ast-mobile-popup-drawer .ast-custom-button:hover {
  background: #14161B !important;
  color: #F6F3EE !important;
}

/* Desktop-narrow (when nav collapses before mobile breakpoint) */
.ast-header-break-point .main-header-menu,
.ast-header-break-point .main-navigation {
  background: #F6F3EE !important;
}

/* Right-align primary nav next to the button */
.site-header .ast-builder-menu-1,
.site-header-primary-section-center {
  margin-left: auto !important;
}

.site-header .main-header-menu,
.site-header .main-header-menu > ul {
  justify-content: flex-end !important;
}

/* ==== Standard pages: editorial surface (What We Do, About, Contact) ==== */

body.page:not(.home) .site-content,
body.page:not(.home) .ast-container,
body.page:not(.home) article.page,
body.page:not(.home) .entry-content,
body.page:not(.home) .entry-header,
body.page:not(.home) .ast-article-single,
body.page:not(.home) .site-main {
  background: #F6F3EE !important;
  color: #14161B;
}

body.page:not(.home) .entry-header {
  padding: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 48px) 1rem !important;
  max-width: 1080px;
  margin: 0 auto !important;
  border: none !important;
}

body.page:not(.home) .entry-title,
body.page:not(.home) .page-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
  line-height: 1.03 !important;
  letter-spacing: -0.02em !important;
  font-weight: 500 !important;
  color: #14161B !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page:not(.home) .entry-content {
  padding: 0 clamp(24px, 4vw, 48px) clamp(64px, 10vw, 128px) !important;
  max-width: 820px;
  margin: 0 auto !important;
}

/* Widen content area on pages containing a blog catalog Query Loop */
body.page:not(.home) .entry-content:has(.wp-block-query:not(.rv-posts-feed)) {
  max-width: 1200px !important;
}

body.page:not(.home) .entry-content p,
body.page:not(.home) .entry-content li {
  font-size: 1.125rem !important;
  line-height: 1.7 !important;
  color: #14161B !important;
  margin-bottom: 1.25rem;
}

body.page:not(.home) .entry-content ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 1.5rem 0 2rem !important;
}

body.page:not(.home) .entry-content ul > li {
  position: relative;
  padding-left: 36px !important;
  margin-bottom: 14px !important;
  list-style: none !important;
}

body.page:not(.home) .entry-content ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 20px;
  height: 2px;
  background: #FF6A3D;
  transform: translateY(-50%);
}

body.page:not(.home) .entry-content ul > li::marker {
  content: '';
  display: none;
}

body.page:not(.home) .entry-content p:first-of-type:not(.rv-policy-meta):not(.rv-blog-subtitle),
body.page:not(.home) .entry-content .rv-lede {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem) !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
  color: #14161B !important;
  margin-bottom: 2rem !important;
  letter-spacing: -0.005em;
}

body.page:not(.home) .entry-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem) !important;
  line-height: 1.2 !important;
  margin-top: 3rem !important;
  margin-bottom: 1rem !important;
  color: #14161B !important;
  font-weight: 500 !important;
}

body.page:not(.home) .entry-content h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.025em !important;
  font-weight: 500 !important;
  color: #14161B !important;
  margin: 0 0 1rem 0 !important;
  padding: 0 !important;
}

body.page:not(.home) .entry-content .rv-blog-header {
  margin-bottom: 2.5rem !important;
  padding: 0 !important;
}

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..600;1,9..144,400..600&display=swap');

body.page:not(.home) .entry-content .rv-blog-subtitle {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif !important;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem) !important;
  color: #14161B !important;
  font-weight: 500 !important;
  font-style: normal !important;
  margin: 0 0 1.75rem 0 !important;
  line-height: 1.2 !important;
  max-width: 780px;
  letter-spacing: -0.015em;
}

body.page:not(.home) .entry-content .rv-blog-subtitle em {
  font-style: italic !important;
  font-weight: 500 !important;
  color: inherit !important;
}

body.page:not(.home) .entry-content .rv-blog-subtitle em.rv-accent,
body.page:not(.home) .entry-content .rv-blog-subtitle .rv-accent {
  color: #FF6A3D !important;
  font-style: italic !important;
  font-weight: 500 !important;
}

/* Small meta line (for "Last updated" dates, etc.) */
body.page:not(.home) .entry-content .rv-policy-meta {
  font-size: 0.9rem !important;
  color: #5B6370 !important;
  font-style: italic !important;
  margin: -0.5rem 0 3rem 0 !important;
  line-height: 1.4 !important;
}

body.page:not(.home) .entry-content .rv-blog-divider {
  border: none !important;
  border-top: 0.5px solid rgba(20, 22, 27, 0.15) !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  opacity: 1 !important;
  background: none !important;
  height: 0 !important;
}

body.page:not(.home) .entry-content h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem) !important;
  line-height: 1.3 !important;
  margin-top: 2rem !important;
  margin-bottom: 0.5rem !important;
  color: #14161B !important;
  font-weight: 500 !important;
}

body.page:not(.home) .entry-content a:not(.wp-block-button__link):not(.wp-element-button) {
  color: #FF6A3D !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Button styling: outline in graphite (matches nav CTA) */
body.page:not(.home) .wp-block-button__link,
body.page:not(.home) .wp-element-button,
body.page:not(.home) .rv-cta .wp-block-button__link {
  background: transparent !important;
  color: #14161B !important;
  border: 1px solid #14161B !important;
  border-radius: 0 !important;
  font-size: 14px !important;
  letter-spacing: 0.02em !important;
  padding: 14px 28px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  text-transform: none !important;
  transition: background 0.18s ease, color 0.18s ease !important;
  margin-top: 1.5rem;
}

body.page:not(.home) .wp-block-button__link:hover,
body.page:not(.home) .wp-element-button:hover {
  background: #14161B !important;
  color: #F6F3EE !important;
  border-color: #14161B !important;
}

/* Spectra form labels + inputs on standard pages */
body.page:not(.home) .wp-block-uagb-forms .uagb-forms-input-label,
body.page:not(.home) .wp-block-uagb-forms .uagb-forms-name-label,
body.page:not(.home) .wp-block-uagb-forms .uagb-forms-email-label,
body.page:not(.home) .wp-block-uagb-forms .uagb-forms-textarea-label {
  color: #14161B !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  letter-spacing: 0.01em !important;
  margin-bottom: 6px !important;
}

body.page:not(.home) .wp-block-uagb-forms input:not([type="submit"]),
body.page:not(.home) .wp-block-uagb-forms textarea {
  color: #14161B !important;
  background: #FFFFFF !important;
  border: 1px solid rgba(20, 22, 27, 0.2) !important;
  border-radius: 2px !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
}

body.page:not(.home) .wp-block-uagb-forms input:focus,
body.page:not(.home) .wp-block-uagb-forms textarea:focus {
  outline: none !important;
  border-color: #14161B !important;
}

body.page:not(.home) .wp-block-uagb-forms input::placeholder,
body.page:not(.home) .wp-block-uagb-forms textarea::placeholder {
  color: #8A94A6 !important;
}

body.page:not(.home) .wp-block-uagb-forms .uagb-forms-main-submit-button {
  background: transparent !important;
  color: #14161B !important;
  border: 1px solid #14161B !important;
  border-radius: 0 !important;
  padding: 14px 28px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  box-shadow: none !important;
  transition: background 0.18s ease, color 0.18s ease !important;
}

body.page:not(.home) .wp-block-uagb-forms .uagb-forms-main-submit-button:hover {
  background: #14161B !important;
  color: #F6F3EE !important;
}

/* ==== Blog catalog: editorial light cards with border ==== */

body:not(.home) .wp-block-query:not(.rv-posts-feed) .wp-block-post-template {
  gap: 2rem !important;
  list-style: none !important;
  padding: 0 !important;
}

body:not(.home) .wp-block-query:not(.rv-posts-feed) .wp-block-post-template > li.wp-block-post {
  background: #FDFBF5 !important;
  border: 0.5px solid rgba(20, 22, 27, 0.12) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  padding: 0 0 1.5rem 0 !important;
  list-style: none !important;
  display: block !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
}

body:not(.home) .wp-block-query:not(.rv-posts-feed) .wp-block-post-template > li.wp-block-post:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(20, 22, 27, .08) !important;
  border-color: rgba(20, 22, 27, 0.22) !important;
}

body:not(.home) .wp-block-query:not(.rv-posts-feed) .wp-block-post-template > li.wp-block-post::before {
  content: none !important;
  display: none !important;
}

body:not(.home) .wp-block-query:not(.rv-posts-feed) .wp-block-post-featured-image {
  aspect-ratio: 16 / 10 !important;
  overflow: hidden !important;
  margin: 0 0 1.25rem 0 !important;
}

body:not(.home) .wp-block-query:not(.rv-posts-feed) .wp-block-post-featured-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

body:not(.home) .wp-block-query:not(.rv-posts-feed) .wp-block-post-title {
  color: #14161B !important;
  font-size: 1.375rem !important;
  line-height: 1.25 !important;
  font-weight: 500 !important;
  padding: 0 1.5rem !important;
  margin: 0 0 0.75rem 0 !important;
  letter-spacing: -0.005em !important;
}

body:not(.home) .wp-block-query:not(.rv-posts-feed) .wp-block-post-title a {
  color: #14161B !important;
  text-decoration: none !important;
  border-bottom: none !important;
  background: transparent !important;
}

body:not(.home) .wp-block-query:not(.rv-posts-feed) .wp-block-post-title a:hover {
  color: #FF6A3D !important;
  text-decoration: none !important;
}

body:not(.home) .wp-block-query:not(.rv-posts-feed) .wp-block-post-date {
  color: #5B6370 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 0 1.5rem !important;
  margin: 0 0 0.5rem 0 !important;
  text-align: left !important;
  font-weight: 500 !important;
}

body:not(.home) .wp-block-query:not(.rv-posts-feed) .wp-block-post-excerpt {
  color: #5B6370 !important;
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
  padding: 0 1.5rem !important;
  margin: 0 !important;
}

body:not(.home) .wp-block-query:not(.rv-posts-feed) .wp-block-post-excerpt p {
  color: #5B6370 !important;
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
}

body:not(.home) .wp-block-query:not(.rv-posts-feed) .wp-block-post-excerpt__more-link {
  color: #FF6A3D !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

/* ---- Hard override: query card excerpts must never inherit page-level
   paragraph or lede styling, including the :first-of-type lede bump ---- */
body.page:not(.home) .entry-content .wp-block-query:not(.rv-posts-feed) .wp-block-post-excerpt,
body.page:not(.home) .entry-content .wp-block-query:not(.rv-posts-feed) .wp-block-post-excerpt p,
body.page:not(.home) .entry-content .wp-block-query:not(.rv-posts-feed) .wp-block-post-excerpt p:first-of-type {
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
  font-weight: 400 !important;
  color: #5B6370 !important;
  margin: 0 !important;
}

/* ==== Single post body: unified editorial surface ==== */

body.single-post,
body.single-post .site,
body.single-post .site-content,
body.single-post .site-content-contain,
body.single-post .ast-article-post,
body.single-post .content-area {
  background: #F6F3EE !important;
}

body.single-post .post-navigation,
body.single-post .nav-links {
  background: transparent !important;
  padding: 2rem clamp(24px, 4vw, 48px) !important;
  max-width: 820px;
  margin: 0 auto !important;
  border-top: 0.5px solid rgba(20, 22, 27, 0.1);
  border-bottom: 0.5px solid rgba(20, 22, 27, 0.1);
}

body.single-post .post-navigation a,
body.single-post .nav-links a,
body.single-post .nav-previous a,
body.single-post .nav-next a {
  color: #14161B !important;
  background: transparent !important;
  text-decoration: none !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.01em;
}

body.single-post .post-navigation a:hover,
body.single-post .nav-links a:hover,
body.single-post .nav-previous a:hover,
body.single-post .nav-next a:hover {
  color: #FF6A3D !important;
}

/* Tighten single post top spacing — less dead air between nav and title */
body.single-post .site-main,
body.single-post .ast-container,
body.single-post .ast-article-single,
body.single-post .content-area {
  padding-top: 0 !important;
}

body.single-post .entry-header {
  padding: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 48px) 1.25rem !important;
  max-width: 820px;
  margin: 0 auto !important;
}

/* ==== Footer: editorial style ==== */

.site-footer,
.site-below-footer-wrap,
.site-primary-footer-wrap,
.site-above-footer-wrap,
.ast-builder-grid-row-container-inner,
.ast-builder-footer-grid-columns,
.site-footer [class*="ast-builder-grid-row"],
.site-footer [class*="ast-builder-grid-row"] > div,
.site-footer .ast-container,
.site-footer .ast-builder-html-element {
  background: #EFEBE2 !important;
  background-color: #EFEBE2 !important;
  color: #5B6370 !important;
  border-color: rgba(20, 22, 27, 0.1) !important;
  box-shadow: none !important;
}

.site-footer {
  border-top: 0.5px solid rgba(20, 22, 27, 0.1) !important;
}

.site-footer,
.site-footer *,
.site-footer .ast-builder-html-element,
.site-footer .site-info,
.site-footer .copyright-section {
  color: #5B6370 !important;
  font-size: 12px !important;
  letter-spacing: 0.02em !important;
}

.site-footer a,
.site-footer .footer-menu a,
.site-footer .menu-item a,
.site-footer li a {
  color: #14161B !important;
  text-decoration: none !important;
  background: transparent !important;
  transition: color 0.18s ease !important;
}

.site-footer a:hover,
.site-footer .footer-menu a:hover,
.site-footer .menu-item a:hover,
.site-footer li a:hover {
  color: #FF6A3D !important;
  background: transparent !important;
}

/* Back-to-top scroll button — subtle outline in brand color */
#ast-scroll-top,
.ast-scroll-top,
.ast-scroll-to-top {
  background: transparent !important;
  background-color: transparent !important;
  color: #14161B !important;
  border: 1px solid #14161B !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 40px !important;
  height: 40px !important;
}

#ast-scroll-top:hover,
.ast-scroll-top:hover,
.ast-scroll-to-top:hover {
  background: #14161B !important;
  color: #F6F3EE !important;
}

#ast-scroll-top svg,
.ast-scroll-top svg,
.ast-scroll-to-top svg,
#ast-scroll-top i,
.ast-scroll-top i {
  fill: currentColor !important;
  color: currentColor !important;
}

/* ==== Single post comment section: editorial styling ==== */

.single-post .comments-area,
.single-post #comments,
.single-post .comment-respond {
  background: #F6F3EE !important;
  color: #14161B !important;
  padding: 2rem clamp(24px, 4vw, 48px) !important;
  max-width: 820px;
  margin: 0 auto !important;
  border: none !important;
  box-shadow: none !important;
}

.single-post .comments-title,
.single-post .comment-reply-title,
.single-post #comments h2,
.single-post #comments h3,
.single-post .comment-respond h2,
.single-post .comment-respond h3 {
  color: #14161B !important;
  font-size: 1.5rem !important;
  font-weight: 500 !important;
  margin-bottom: 1rem !important;
  letter-spacing: -0.01em !important;
}

.single-post .comment-notes,
.single-post .comment-form-comment label,
.single-post .logged-in-as,
.single-post .logged-in-as a {
  color: #5B6370 !important;
  background: transparent !important;
}

.single-post .logged-in-as a {
  color: #14161B !important;
  text-decoration: underline;
}

.single-post #commentform input[type="text"],
.single-post #commentform input[type="email"],
.single-post #commentform input[type="url"],
.single-post #commentform textarea {
  background: #FFFFFF !important;
  color: #14161B !important;
  border: 1px solid rgba(20, 22, 27, 0.2) !important;
  border-radius: 2px !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
  width: 100% !important;
  max-width: 100% !important;
}

.single-post #commentform input:focus,
.single-post #commentform textarea:focus {
  outline: none !important;
  border-color: #14161B !important;
}

.single-post #commentform .submit,
.single-post #commentform #submit,
.single-post .comment-respond .submit {
  background: transparent !important;
  color: #14161B !important;
  border: 1px solid #14161B !important;
  border-radius: 0 !important;
  padding: 12px 28px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  box-shadow: none !important;
  transition: background 0.18s ease, color 0.18s ease !important;
  text-transform: none !important;
}

.single-post #commentform .submit:hover,
.single-post #commentform #submit:hover,
.single-post .comment-respond .submit:hover {
  background: #14161B !important;
  color: #F6F3EE !important;
}

/* ==== Single post: Related Posts (Astra) — editorial card grid ==== */

/* Outer band — matches the warm cream tone of the footer and Work With Us band
   so the section feels like part of the editorial surface, not a hard cut. */
.ast-single-related-posts-container {
  background: #EFEBE2 !important;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 4vw, 48px) !important;
  border-top: 0.5px solid rgba(20, 22, 27, 0.1) !important;
}

/* "Related Posts" title bar */
.ast-related-posts-title-section {
  max-width: 1200px;
  margin: 0 auto clamp(32px, 4vw, 56px) !important;
  padding: 0 0.5rem;
}

.ast-related-posts-title {
  color: #14161B !important;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem) !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  margin: 0 !important;
}

/* Grid wrapper — fixed-cap columns so a lone card never sprawls across the full container.
   minmax(280px, 360px) keeps each card within a sane size envelope, and justify-content:
   start makes 1- or 2-card layouts hug the left rather than centering with empty space. */
.ast-related-posts-wrapper {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 360px)) !important;
  gap: 1.5rem !important;
  max-width: 1200px;
  margin: 0 auto !important;
  padding: 0 0.5rem;
  justify-content: start !important;
}

/* Card — same treatment as the blog catalog cards (lightest cream + thin border) */
.ast-related-post {
  background: #FDFBF5 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  max-width: 360px !important;
  width: 100% !important;
  border: 0.5px solid rgba(20, 22, 27, 0.12) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.ast-related-post:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(20, 22, 27, 0.08) !important;
  border-color: rgba(20, 22, 27, 0.22) !important;
}

.ast-related-posts-inner-section,
.ast-related-post-content {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

/* Featured image — cap to 3:2 aspect to match hero images, prevent vertical sprawl */
.ast-related-post-featured-section {
  margin: 0 !important;
}

.ast-related-post-featured-section .post-thumb-img-content,
.ast-related-post-featured-section .post-thumb {
  aspect-ratio: 3 / 2 !important;
  overflow: hidden !important;
  display: block !important;
  margin: 0 !important;
}

.ast-related-post-featured-section a,
.ast-related-post-featured-section picture {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.ast-related-post-featured-section img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

/* Header (title + meta) */
.related-entry-header {
  padding: 1.25rem 1.5rem 0 !important;
  margin: 0 !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

/* TITLE — fix the invisible-text bug */
.ast-related-post-title,
.ast-related-post-title a,
.ast-related-post .ast-related-post-title a {
  color: #14161B !important;
  font-size: 1.1rem !important;
  line-height: 1.3 !important;
  font-weight: 500 !important;
  letter-spacing: -0.005em !important;
  text-decoration: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ast-related-post-title a:hover {
  color: #FF6A3D !important;
}

/* Meta row (date + category) */
.ast-related-post .entry-meta,
.ast-related-post .related-entry-header .entry-meta {
  padding: 0.75rem 1.5rem 1.25rem !important;
  margin: 0 !important;
  font-size: 0.8rem !important;
  color: #5B6370 !important;
  letter-spacing: 0.02em !important;
}

.ast-related-post .entry-meta a,
.ast-related-post .entry-meta .posted-on,
.ast-related-post .entry-meta .published,
.ast-related-post .entry-meta .cat-links a {
  color: #5B6370 !important;
  text-decoration: none !important;
}

.ast-related-post .entry-meta a:hover,
.ast-related-post .entry-meta .cat-links a:hover {
  color: #FF6A3D !important;
}

/* Hide the empty entry-content div Astra leaves behind */
.ast-related-post .entry-content {
  display: none !important;
}

/* Mobile */
@media (max-width: 768px) {
  .ast-related-posts-wrapper {
    grid-template-columns: 1fr !important;
    justify-content: stretch !important;
  }
  .ast-related-post {
    max-width: none !important;
  }
  .ast-single-related-posts-container {
    padding: 2.5rem 1rem !important;
  }
  .ast-related-post-title,
  .ast-related-post-title a {
    font-size: 1.05rem !important;
  }
}