/*
Theme Name: Rapid Analytical
Theme URI: https://rapidanalytical.com/
Author: Rapid Analytical LLC
Description: A lightweight, standalone block theme with homepage content kept in the WordPress page editor.
Version: 0.2.7
Text Domain: rapid-analytical
*/

/* Shared site shell and reusable component layer. Page-specific content remains in the page editor. */
:root {
	--ra-navy: #1f2d3d;
	--ra-primary: #2f6f89;
	--ra-primary-hover: #265b70;
	--ra-accent: #d7f11d;
	--ra-accent-hover: #c5df10;
	--ra-border: #e1e5e9;
	--ra-surface: #f7f8f9;
	--ra-muted: #5a626b;
	--ra-radius: 10px;
	--ra-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	--ra-wide:1160px;
	--ra-reading:820px;
	--ra-heading:#1f2d3d;
	--ra-body:#3d3d3d;
	--ra-card:#f5f5f5;
	--ra-section-alt:#f7f7f7;
}

/* === Global typography, FAQ, responsive tables, homepage and technical guide layouts ===
   Consolidated from Additional CSS; shared header/footer/CTA rules live in this stylesheet.
   Production Additional CSS was already consolidated in v0.2.3. */

/* Early homepage layout geometry to prevent first-paint reflow while the
   original block-level styles further down the document are parsed. */
@scope (body.home) {

#wp--skip-link--target{
  --wp--style--global--wide-size:1160px;
}
#wp--skip-link--target .rapid-wide-section,
#wp--skip-link--target .xrf-conversion-section{
  width:calc(100vw - 48px) !important;
  max-width:1160px !important;
  box-sizing:border-box;
  position:relative;
  left:50%;
  transform:translateX(-50%);
  margin-left:0 !important;
  margin-right:0 !important;
}
#wp--skip-link--target .xrf-conversion-inner{
  width:100%;
  max-width:1160px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
#wp--skip-link--target #feedback{
  width:100vw !important;
  max-width:none !important;
  box-sizing:border-box;
  position:relative;
  left:50%;
  transform:translateX(-50%);
  margin-left:0 !important;
  margin-right:0 !important;
}
#wp--skip-link--target #feedback > div{
  width:calc(100vw - 48px) !important;
  max-width:1160px !important;
  box-sizing:border-box;
  margin-left:auto !important;
  margin-right:auto !important;
}
/* Header and footer sizing are controlled globally in the site design system. */
.rapid-hero-title{color:#ffffff !important;}
.wp-block-cover.alignfull .wp-block-columns.alignwide{
  align-items:center !important;
  margin-bottom:0 !important;
}
.wp-block-cover.alignfull .wp-block-image{
  margin-bottom:0 !important;
}
.wp-block-cover.alignfull .wp-block-image img{
  display:block;
  max-height:290px;
  width:auto;
  margin-left:auto;
  margin-right:auto;
  object-fit:contain;
}
.rapid-hero-actions{
  display:flex;
  align-items:stretch;
  gap:14px;
}
.rapid-hero-actions .wp-block-button{
  flex:0 0 218px;
}
.rapid-hero-actions .wp-block-button__link{
  width:100%;
  min-height:48px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:11px 18px !important;
  font-size:15px;
  font-weight:700;
  line-height:1.2;
  border-radius:7px !important;
}
.rapid-hero-actions .wp-block-button:first-child .wp-block-button__link{
  background:#2F6F89 !important;
  color:#ffffff !important;
}
.rapid-hero-actions .wp-block-button:nth-child(2) .wp-block-button__link{
  background:#ffffff !important;
  color:#1f2d3d !important;
  border:1px solid #d9dee4 !important;
}
.rapid-how-columns{
  align-items:stretch !important;
}
.rapid-how-columns > .wp-block-column{
  display:flex;
  align-items:stretch;
}
.rapid-how-columns > .wp-block-column > .wp-block-group{
  width:100%;
  height:100%;
  min-height:0 !important;
  box-sizing:border-box;
  padding:14px 16px !important;
}
.rapid-how-columns h3{
  line-height:1.25 !important;
}
.rapid-how-columns p{
  line-height:1.55 !important;
}
.rapid-resources-section{
  width:calc(100vw - 48px) !important;
  max-width:1160px !important;
  box-sizing:border-box;
  position:relative;
  left:50%;
  transform:translateX(-50%);
  margin-left:0 !important;
  margin-right:0 !important;
}
.rapid-resources-section > *{
  width:100% !important;
  max-width:100% !important;
  margin-left:0 !important;
  margin-right:0 !important;
}
.rapid-resources-section .wp-block-columns{
  column-gap:18px !important;
  margin-bottom:18px !important;
}
.rapid-resources-section .wp-block-columns:last-child{
  margin-bottom:0 !important;
}
.rapid-application-actions{
  display:flex;
  align-items:stretch;
  justify-content:center;
  gap:12px;
}
.rapid-app-cta{
  width:270px;
  min-height:48px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:11px 18px;
  border-radius:7px;
  font-size:15px;
  font-weight:700;
  line-height:1.2;
  text-decoration:none !important;
}
.rapid-app-cta-primary{
  background:#2F6F89;
  border:1px solid #2F6F89;
  color:#fff !important;
}
.rapid-app-cta-secondary{
  background:#fff;
  border:1px solid #1f2d3d;
  color:#1f2d3d !important;
}
.rapid-application-grid > div{
  border-radius:10px !important;
}
#feedback > div > div:first-child{
  margin-bottom:24px !important;
}
#feedback .review-grid{
  gap:20px !important;
}
#feedback .review-grid > div{
  border-radius:10px !important;
  padding:20px !important;
}
.rapid-hero-question{
  font-size:14px !important;
}
@media (max-width: 900px) {
  .xrf-order-card{order:-1;}
  .xrf-report-card{order:2;}
  .rapid-hero-title { font-size: 32px !important; line-height:1.12 !important; }
  .rapid-how-columns > .wp-block-column > .wp-block-group{min-height:0 !important;height:auto;}
}
/* Mobile header and footer sizing are controlled globally. */
@media (max-width: 600px) {
  main h2{
    font-size:22px !important;
    line-height:1.28 !important;
  }
  main h3{
    font-size:18px !important;
    line-height:1.3 !important;
  }
  .wp-block-cover.alignfull{
    padding-left:20px !important;
    padding-right:20px !important;
    min-height:auto !important;
  }
  .wp-block-cover.alignfull .wp-block-image img{
    max-height:230px;
    width:auto;
    margin-top:10px;
  }
  #wp--skip-link--target .rapid-wide-section,
  #wp--skip-link--target .xrf-conversion-section{
    width:calc(100vw - 40px) !important;
  }
  .rapid-how-works{
    padding-left:20px !important;
    padding-right:20px !important;
  }
  #feedback{
    padding-left:0 !important;
    padding-right:0 !important;
  }
  #wp--skip-link--target #feedback > div{
    width:calc(100vw - 40px) !important;
  }
  .rapid-hero-title { font-size: 30px !important; line-height: 1.15 !important; }
  .rapid-hero-actions{
    flex-direction:column !important;
    align-items:stretch !important;
    gap:10px !important;
  }
  .rapid-hero-actions .wp-block-button{
    flex:1 1 100% !important;
    width:100% !important;
  }
  .rapid-hero-actions .wp-block-button__link{
    width:100% !important;
    min-height:48px !important;
    font-size:15px !important;
  }
  section[aria-label="Rapid Analytical service highlights"] > div{
    display:grid !important;
    grid-template-columns:1fr 1fr;
    gap:8px 14px !important;
  }
  section[aria-label="Rapid Analytical service highlights"] span[aria-hidden="true"]{
    display:none !important;
  }
  .rapid-how-columns > .wp-block-column > .wp-block-group,
  .xrf-card,
  .rapid-application-grid > div,
  .rapid-resources-section .wp-block-group[style*="border-radius"],
  #feedback .review-grid > div{
    padding:16px 18px !important;
  }
  .rapid-resources-section .wp-block-columns{
    margin-bottom:14px !important;
  }
  .rapid-application-actions{
    flex-direction:column !important;
    gap:10px !important;
  }
  .rapid-app-cta{
    width:100% !important;
    min-height:48px !important;
  }
  #feedback .review-grid{
    gap:16px !important;
  }
}


  .xrf-conversion-section{width:100%;max-width:1160px;margin-left:auto;margin-right:auto;box-sizing:border-box;padding-top:18px;padding-bottom:16px;padding-left:0;padding-right:0;}
  .xrf-conversion-inner{width:100%;max-width:var(--wp--style--global--wide-size);margin:0 auto;}
  .xrf-top-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch;}
  .xrf-main-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(320px,2fr);gap:16px;align-items:start;margin-top:0;}
  .xrf-card{box-sizing:border-box;background:#f5f5f5;border:1px solid #e2e2e2;border-radius:10px;padding:20px;font-size:16px;}
  .xrf-card h3{font-size:20px;line-height:1.3;margin:0 0 16px;}
  .xrf-card ul{margin:0 0 14px;padding-left:20px;}
  .xrf-card li{margin-bottom:7px;line-height:1.5;}
  .xrf-card-link{margin:14px 0 0;}
  .xrf-step{margin:0 0 16px;line-height:1.45;}
  .xrf-step:last-child{margin-bottom:0;}
  .xrf-step span{font-size:16px;}
  .xrf-report-card{display:block;height:auto;}
  .xrf-report-preview{display:flex;align-items:center;justify-content:center;margin:8px 0 10px;text-decoration:none;}
  .xrf-report-preview img{display:block;width:auto;max-width:100%;max-height:400px;object-fit:contain;}
  .xrf-report-link{text-align:center;margin:8px 0 0;font-size:14px;}
  .xrf-order-card{padding:18px;}.xrf-order-card #pricing-start{height:auto;}
  @media(max-width:900px){
    .xrf-top-grid{grid-template-columns:1fr;}
    .xrf-main-grid{grid-template-columns:1fr;}
    .xrf-report-card h3{margin-bottom:6px;}
    .xrf-report-preview{margin:0 0 6px;}
    .xrf-report-preview img{max-height:280px;width:auto;max-width:100%;}
  }

}

/* Desktop checkout stability: reserve the hosted PayPal button slot from first paint.
   The clickable PayPal fallback occupies that same slot until the SDK renders.
   This reduces potential layout movement without changing the payment flow. */
@media (min-width: 900px) {
  body.home #paypal-container-KPRUEQGVKLVQS {
    min-height: 80px;
  }

  body.home #paypal-container-KPRUEQGVKLVQS:empty + .paypal-fallback {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    margin-top: -80px !important;
    position: relative;
    z-index: 1;
  }

  body.home #paypal-container-KPRUEQGVKLVQS:empty + .paypal-fallback button {
    margin-inline: auto;
  }
}
body{ color:var(--ra-body); font-size:16px; line-height:1.65; }

main h1{ color:var(--ra-heading)!important; font-size:40px!important; line-height:1.12!important; }

main h2{ color:var(--ra-heading)!important; font-size:24px!important; line-height:1.28!important; }
/* Preserve white headings on the dark Contact quote panel. */
body.page-id-42 main .rapid-contact-quote h2 { color: #ffffff !important; }

main h3{ color:var(--ra-heading)!important; font-size:18px!important; line-height:1.3!important; }

main p,main li{ font-size:16px; line-height:1.65; }

main small,main .has-small-font-size{ font-size:14px; line-height:1.5; }

main .wp-element-button, main button, main input[type="submit"]{ min-height:48px; font-size:15px; font-weight:700; }

body:not(.home) main .entry-content>h1{ margin-top:0!important; margin-bottom:18px!important; }

body:not(.home) main .entry-content>h2{ margin-top:36px!important; margin-bottom:12px!important; }

body:not(.home) main .entry-content>h3{ margin-top:24px!important; margin-bottom:10px!important; }

body:not(.home) main .entry-content p,
body:not(.home) main .entry-content li{
  line-height:1.65!important;
}

body:not(.home) main .entry-content>p{
  margin-top:0!important;
  margin-bottom:16px!important;
  line-height:1.65!important;
}

body:not(.home) main .entry-content>ul, body:not(.home) main .entry-content>ol{ margin-top:8px!important; margin-bottom:20px!important; }

.xrf-value-item{border-radius:10px!important;}

body:is(.page-id-41,.page-id-42,.page-id-445,.page-id-452,.page-id-453,.page-id-555,.page-id-621,.page-id-625,.page-id-626,.page-id-627,.page-id-846,.page-id-847,.page-id-859,.page-id-860,.page-id-894) main .entry-content>p,
body:is(.page-id-41,.page-id-42,.page-id-445,.page-id-452,.page-id-453,.page-id-555,.page-id-621,.page-id-625,.page-id-626,.page-id-627,.page-id-846,.page-id-847,.page-id-859,.page-id-860,.page-id-894) main .entry-content>ul,
body:is(.page-id-41,.page-id-42,.page-id-445,.page-id-452,.page-id-453,.page-id-555,.page-id-621,.page-id-625,.page-id-626,.page-id-627,.page-id-846,.page-id-847,.page-id-859,.page-id-860,.page-id-894) main .entry-content>ol{
  max-width:860px;
}

body:not(.home) main .entry-content>.wp-block-group.has-background{
  border-radius:10px!important;
}

.ra-faq-list{
  display:grid;
  gap:10px;
  margin:22px 0 28px;
}

.ra-faq-item{
  border:1px solid #e2e2e2;
  border-radius:10px;
  background:#fff;
  overflow:hidden;
}

.ra-faq-item summary{
  position:relative;
  cursor:pointer;
  list-style:none;
  padding:15px 46px 15px 18px;
  font-size:16px;
  line-height:1.4;
  font-weight:700;
  color:#1f2d3d;
}

.ra-faq-item summary::-webkit-details-marker{display:none;}

.ra-faq-item summary::after{
  content:"+";
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  font-size:22px;
  line-height:1;
  font-weight:600;
  color:#5f6670;
}

.ra-faq-item[open] summary::after{content:"–";}

.ra-faq-answer{
  padding:0 18px 16px;
  border-top:1px solid #eceff2;
  background:#fafafa;
}

.ra-faq-answer p{
  margin:14px 0 0!important;
  line-height:1.65!important;
}

.ra-responsive-table th{
  background:#f5f5f5;
  color:#1f2d3d;
  font-weight:700;
}

@media(max-width:700px){
  .ra-faq-item summary{
    padding:14px 42px 14px 16px;
  }
  .ra-faq-item summary::after{right:16px;}
  .ra-faq-answer{padding:0 16px 14px;}

  .ra-responsive-table,
  .ra-responsive-table tbody,
  .ra-responsive-table tr,
  .ra-responsive-table td{
    display:block;
    width:100%;
    box-sizing:border-box;
  }
  .ra-responsive-table thead{
    display:none;
  }
  .ra-responsive-table{
    border:0!important;
    margin:16px 0 22px!important;
  }
  .ra-responsive-table tr{
    border:1px solid #e2e2e2;
    border-radius:10px;
    overflow:hidden;
    margin-bottom:12px;
    background:#fff;
  }
  .ra-responsive-table td{
    position:relative;
    min-height:46px;
    border:0!important;
    border-bottom:1px solid #eceff2!important;
    padding:11px 12px 11px 45%!important;
  }
  .ra-responsive-table td:last-child{
    border-bottom:0!important;
  }
  .ra-responsive-table td::before{
    content:attr(data-label);
    position:absolute;
    left:12px;
    top:11px;
    width:38%;
    color:#1f2d3d;
    font-weight:700;
    line-height:1.35;
  }
}

body.home .rapid-how-columns, body.home .xrf-conversion-section, body.home .rapid-applications-section, body.home .rapid-resources-section, body.home #feedback>div{ max-width:var(--ra-wide)!important; box-sizing:border-box!important; }

body.home .rapid-how-columns{ gap:16px!important; }

body.home .rapid-how-columns>.wp-block-column>.wp-block-group{ padding:14px 16px!important; min-height:0!important; height:100%!important; border-radius:10px!important; }

body.home .xrf-main-grid{ gap:16px!important; }

body.home .rapid-application-grid{ gap:16px!important; }

body.home .rapid-application-grid>div{ padding:18px!important; border-radius:10px!important; }

body.home .rapid-application-actions{ margin-top:18px!important; gap:12px!important; }

body.home .rapid-resources-section{ padding-top:24px!important; padding-bottom:24px!important; }

body.home .rapid-resources-section .wp-block-columns{ column-gap:16px!important; row-gap:16px!important; margin-bottom:16px!important; }

body.home .rapid-resources-section .wp-block-columns:last-child{ margin-bottom:0!important; }

body.home #feedback{ width:100vw!important; max-width:none!important; box-sizing:border-box!important; position:relative!important; left:50%!important; transform:translateX(-50%)!important; margin-left:0!important; margin-right:0!important; padding-top:28px!important; padding-bottom:40px!important; }

body.home #feedback>div{ width:calc(100vw - 48px)!important; max-width:var(--ra-wide)!important; margin-left:auto!important; margin-right:auto!important; box-sizing:border-box!important; }

body.home #feedback>div>div:first-child{ margin-bottom:24px!important; }

body.home #feedback .review-grid{ grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:16px!important; align-items:stretch!important; }

@media(min-width:1000px){ body.home .rapid-resources-section{ display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr))!important; column-gap:16px!important; row-gap:0!important; align-items:stretch!important; } body.home .rapid-resources-section>h2, body.home .rapid-resources-section>p{ grid-column:1/-1; } body.home .rapid-resources-section>h2{ margin:0 0 8px!important; } body.home .rapid-resources-section>p{ margin:0 0 20px!important; } body.home .rapid-resources-section>.wp-block-columns{ display:contents!important; } body.home .rapid-resources-section>.wp-block-columns>.wp-block-column{ display:flex!important; min-width:0!important; } body.home .rapid-resources-section>.wp-block-columns>.wp-block-column>.wp-block-group{ width:100%!important; height:100%!important; } }

@media(max-width:700px){
main h1{ font-size:30px!important; line-height:1.15!important; }
main h2{ font-size:22px!important; line-height:1.28!important; }
main h3{ font-size:18px!important; line-height:1.3!important; }
main p,main li{ font-size:16px; line-height:1.6; }
main small,main .has-small-font-size{ font-size:13px; }
body.page-id-41 main .entry-content, body.page-id-42 main .entry-content, body.page-id-445 main .entry-content, body.page-id-452 main .entry-content, body.page-id-453 main .entry-content, body.page-id-555 main .entry-content, body.page-id-621 main .entry-content, body.page-id-625 main .entry-content, body.page-id-626 main .entry-content, body.page-id-627 main .entry-content, body.page-id-846 main .entry-content, body.page-id-847 main .entry-content, body.page-id-859 main .entry-content, body.page-id-860 main .entry-content, body.page-id-894 main .entry-content, body.page-id-40 main .entry-content, body.page-id-454 main .entry-content, body.page-id-562 main .entry-content, body.page-id-563 main .entry-content, body.page-id-564 main .entry-content, body.page-id-565 main .entry-content, body.page-id-826 main .entry-content, body.page-id-158 main .entry-content{ width:calc(100% - 40px)!important; }
body:not(.home) main .entry-content>h2{ margin-top:28px!important; }
body:not(.home) main .entry-content>h3{ margin-top:20px!important; }
body.home #feedback>div{ width:calc(100vw - 40px)!important; }
body.home .rapid-how-columns, body.home .rapid-application-grid, body.home #feedback .review-grid{ gap:14px!important; }
body.home #feedback{ padding-top:24px!important; padding-bottom:32px!important; }
body.home #feedback .review-grid{ grid-template-columns:1fr!important; }
body.home .rapid-how-columns>.wp-block-column>.wp-block-group, body.home .rapid-application-grid>div, body.home .rapid-resources-section .wp-block-column>.wp-block-group, body.home #feedback .review-grid>div{
    padding:16px 18px!important;
  }
}

.ra-resource-cta-stack br{display:none!important;}

.ra-resource-cta-stack > a{margin:0!important;}

body.page-id-624 main .entry-content{
  width:calc(100% - 48px) !important;
  max-width:820px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:0 !important;
  padding-right:0 !important;
  box-sizing:border-box !important;
}

body.page-id-624 main .entry-content > :where(:not(.alignfull)){
  max-width:100% !important;
  margin-left:0 !important;
  margin-right:0 !important;
}

@media(max-width:782px){
  body.page-id-624 main .entry-content{
    width:calc(100% - 40px) !important;
    padding-top:10px !important;
  }
  body.page-id-624 .xrf-xrd-table-wrap{
    width:100% !important;
    max-width:100% !important;
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }
}

body.page-id-622 main .entry-content,
body.page-id-623 main .entry-content,
body.page-id-645 main .entry-content,
body.page-id-830 main .entry-content{
  width:calc(100% - 48px) !important;
  max-width:820px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:0 !important;
  padding-right:0 !important;
  box-sizing:border-box !important;
}

body.page-id-622 main .entry-content > :where(:not(.alignfull)),
body.page-id-623 main .entry-content > :where(:not(.alignfull)),
body.page-id-645 main .entry-content > :where(:not(.alignfull)),
body.page-id-830 main .entry-content > :where(:not(.alignfull)){
  max-width:100% !important;
  margin-left:0 !important;
  margin-right:0 !important;
}

body.page-id-628 main .entry-content{
  width:calc(100% - 48px) !important;
  max-width:1160px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:0 !important;
  padding-right:0 !important;
  box-sizing:border-box !important;
}

body.page-id-628 main .entry-content > :where(:not(.alignfull)){
  max-width:100% !important;
  margin-left:0 !important;
  margin-right:0 !important;
}

@media(max-width:782px){
  body.page-id-622 main .entry-content,
  body.page-id-623 main .entry-content,
  body.page-id-645 main .entry-content,
  body.page-id-830 main .entry-content,
  body.page-id-628 main .entry-content{
    width:calc(100% - 40px) !important;
    padding-top:10px !important;
  }
}

/* === Shared header, footer, components, CTAs and responsive navigation === */

.ra-site-header__inner {
	gap: 1rem;
	align-items: center;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.ra-site-header__brand {
	flex: 0 1 340px;
	min-width: 0;
	gap: 0.5rem;
	align-items: center;
}

.ra-site-header .wp-block-site-logo {
	flex: 0 0 112px;
	width: 112px;
}

.ra-site-header .wp-block-site-logo img {
	display: block;
	width: 112px;
	height: auto;
}

.ra-site-title {
	max-width: 220px;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.15;
}

nav.ra-site-nav {
	flex: 1 1 auto;
	min-width: 0;
}

.ra-site-nav .wp-block-navigation__container {
	gap: 0.65rem;
}

.ra-site-nav .wp-block-navigation-item__content {
	font-size: 12px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
}

.ra-site-nav .wp-block-navigation__responsive-container-open {
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	min-width: 44px;
	padding: 10px;
	border: 1px solid #1f2d3d;
	border-radius: 8px;
	background: #1f2d3d;
	color: #ffffff;
	align-items: center;
	justify-content: center;
}

.ra-site-nav .wp-block-navigation__responsive-container-open:focus-visible {
	outline: 3px solid #d7f11d;
	outline-offset: 2px;
}

.ra-site-footer {
	border-top: 1px solid var(--ra-border);
	padding: 2.25rem 1.5rem 1.5rem;
	background: var(--ra-surface);
	color: #4d545c;
	font-size: 0.9rem;
}

.ra-site-footer__grid {
	margin: 0;
	gap: 2rem;
}

.ra-site-footer__column {
	min-width: 0;
}

.ra-site-footer__heading {
	margin: 0 0 0.65rem;
	color: var(--ra-navy);
	font-size: 0.95rem;
	letter-spacing: 0.02em;
}

.ra-site-footer__links {
	margin: 0;
	line-height: 1.9;
}

.ra-site-footer__links a,
.ra-site-footer__bottom a {
	color: var(--ra-navy);
	text-decoration: none;
	text-underline-offset: 3px;
}

.ra-site-footer__links a:hover,
.ra-site-footer__links a:focus-visible,
.ra-site-footer__bottom a:hover,
.ra-site-footer__bottom a:focus-visible {
	text-decoration: underline;
}

.ra-site-footer__bottom {
	margin-top: 1.75rem;
	padding-top: 1rem;
	border-top: 1px solid var(--ra-border);
	text-align: center;
	font-size: 0.82rem;
	color: #666d74;
}

.ra-site-footer__bottom p {
	margin: 0.2rem 0;
}

/* Semantic footer links and accessible interactive elements. */
.ra-site-footer__links { list-style: none; padding: 0; }
.ra-site-footer__links li { margin: 0; min-height: 32px; }
.ra-site-footer__links a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: underline; }
.ra-site-footer__bottom a { text-decoration: underline; }
.ra-site-footer__heading { font-size: 16px; }
/* Keep editorial links visibly underlined even when legacy or inline colors are used.
 * Exclude CTA buttons and links with button-like backgrounds. */
main a:not(.wp-block-button__link):not(.wp-element-button):not(.rapid-app-cta):not(.ra-bottom-cta-action):not(.ra-confirm-primary):not(.ra-confirm-secondary):not(.ra-cta-button):not(.ra-resource-cta-link):not([style*="background"]) {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

/* Reusable paired conversion CTAs: consistent on standard pages and Resources.
   Only the final Gutenberg button group is treated as a conversion panel. */
body:not(.home) main .entry-content > .wp-block-buttons:last-child {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 600px) !important;
  max-width: 600px !important;
  margin-inline: auto !important;
  gap: 12px !important;
  align-items: stretch !important;
}
body:not(.home) main .entry-content > .wp-block-buttons:last-child > .wp-block-button {
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
}
body:not(.home) main .entry-content > .wp-block-buttons:last-child .wp-block-button__link {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 52px !important;
  padding: 12px 16px !important;
  border-radius: 7px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  text-align: center !important;
  box-sizing: border-box !important;
}
body:not(.home) main .entry-content > .wp-block-buttons:last-child > .wp-block-button:nth-child(2) .wp-block-button__link {
  color: #1f2d3d !important;
  background: #ffffff !important;
  border: 1px solid #1f2d3d !important;
}
body:not(.home) main .entry-content > .wp-block-buttons:last-child > .wp-block-button:nth-child(2) .wp-block-button__link:hover,
body:not(.home) main .entry-content > .wp-block-buttons:last-child > .wp-block-button:nth-child(2) .wp-block-button__link:focus-visible {
  color: #ffffff !important;
  background: #1f2d3d !important;
}

/* Preserve centered balance for a true single-button group. */
@media (min-width: 783px) {
  body:not(.home) main .entry-content > .wp-block-buttons:last-child:has(> .wp-block-button:only-child) {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 360px) !important;
    max-width: 360px !important;
  }
}

/* Educational guides: center the question-first paired action group. */
body:not(.home) main .ra-bottom-cta-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 600px) !important;
  max-width: 600px !important;
  margin: 18px auto 0 !important;
  gap: 12px !important;
  align-items: stretch !important;
}
body:not(.home) main .ra-bottom-cta-actions > a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 52px !important;
  padding: 12px 16px !important;
  box-sizing: border-box !important;
  border-radius: 7px !important;
  text-align: center !important;
  text-decoration: none !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}
@media (max-width: 782px) {
  body:not(.home) main .ra-bottom-cta-actions {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Resources: question-first CTA, with semantic anchors from the theme renderer. */
body.page-id-894 main .ra-bottom-cta .ra-resource-cta-stack {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 600px) !important;
  max-width: 600px !important;
  gap: 12px !important;
  margin: 18px auto 0 !important;
  align-items: stretch !important;
}
body.page-id-894 main .ra-resource-cta-stack > .ra-resource-cta-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0;
  width: 100% !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  box-sizing: border-box !important;
  border-radius: 7px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: normal !important;
}
body.page-id-894 main .ra-resource-cta-stack > .ra-resource-cta-link:first-child {
  background: #2f6f89 !important;
  color: #ffffff !important;
  border: 1px solid #2f6f89 !important;
}
body.page-id-894 main .ra-resource-cta-stack > .ra-resource-cta-link:first-child:hover,
body.page-id-894 main .ra-resource-cta-stack > .ra-resource-cta-link:first-child:focus-visible {
  background: #265b70 !important;
  border-color: #265b70 !important;
}
body.page-id-894 main .ra-resource-cta-stack > .ra-resource-cta-link:last-child {
  background: #ffffff !important;
  color: #1f2d3d !important;
  border: 1px solid #1f2d3d !important;
}
body.page-id-894 main .ra-resource-cta-stack > .ra-resource-cta-link:last-child:hover,
body.page-id-894 main .ra-resource-cta-stack > .ra-resource-cta-link:last-child:focus-visible {
  color: #ffffff !important;
  background: #1f2d3d !important;
}
@media (max-width: 782px) {
  body:not(.home) main .entry-content > .wp-block-buttons:last-child,
  body.page-id-894 main .ra-bottom-cta .ra-resource-cta-stack {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--ra-primary);
  outline-offset: 3px;
}
main img { max-width: 100%; height: auto; }
body:is(.page-id-40,.page-id-454,.page-id-562,.page-id-563,.page-id-564,.page-id-565,.page-id-624,.page-id-622,.page-id-623,.page-id-645,.page-id-830) main .entry-content {
  max-width: 820px !important;
}

/* Reusable standard-page components and CTA consistency. */
/* Contact page sets --ra-accent to teal locally; maintain white text on teal submit CTA. */
body.page-id-42 main .entry-content .wpcf7 input[type="submit"] {
	background: var(--ra-primary) !important;
	color: #ffffff !important;
}

body:not(.home) main .entry-content .wp-block-button__link {
	box-sizing: border-box;
	min-height: 48px;
	padding: 11px 18px !important;
	border-radius: 7px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-align: center;
}

body:not(.home) main .entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--ra-primary) !important;
	color: #ffffff !important;
	border: 1px solid var(--ra-primary) !important;
}

body:not(.home) main .entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
body:not(.home) main .entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:focus-visible {
	background: var(--ra-primary-hover) !important;
	border-color: var(--ra-primary-hover) !important;
	color: #ffffff !important;
}

body:not(.home) main .entry-content .wp-block-button.is-style-outline .wp-block-button__link {
	background: #ffffff !important;
	color: var(--ra-navy) !important;
	border: 1px solid var(--ra-navy) !important;
}

body:not(.home) main .entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover,
body:not(.home) main .entry-content .wp-block-button.is-style-outline .wp-block-button__link:focus-visible {
	background: var(--ra-navy) !important;
	color: #ffffff !important;
}

body:not(.home) main .entry-content > .wp-block-buttons:last-child {
	box-sizing: border-box;
	margin-top: 2rem !important;
	padding: 1.15rem !important;
	gap: 0.75rem !important;
	border: 1px solid var(--ra-border);
	border-radius: var(--ra-radius);
	background: var(--ra-surface);
}

body:not(.home) main .entry-content > .wp-block-buttons:last-child > p {
	flex: 1 0 100%;
	margin: 0 0 0.25rem !important;
}

.ra-card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 1.25rem 0 1.75rem;
}

.ra-card,
.ra-callout,
.ra-cta-panel {
	box-sizing: border-box;
	border: 1px solid var(--ra-border);
	border-radius: var(--ra-radius);
	background: #ffffff;
	box-shadow: var(--ra-shadow);
}

.ra-card {
	padding: 1.25rem;
}

.ra-callout,
.ra-cta-panel {
	padding: 1.25rem 1.35rem;
	background: var(--ra-surface);
}

.ra-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: stretch;
}

@media (max-width: 782px) {
	.ra-site-footer {
		padding: 1.25rem 1.25rem 1rem;
	}

	.ra-site-footer__grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 24px;
		row-gap: 18px;
		margin: 0 0 14px;
	}

	.ra-site-footer__column:last-child {
		grid-column: 1 / -1;
	}

	.ra-card-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 782px) {
	body:not(.home) main .entry-content .wp-block-buttons,
	body:not(.home) main .ra-cta-actions,
	body:not(.home) main .ra-bottom-cta-actions,
	body:not(.home) main .ra-confirm-actions,
	body:not(.home) main .rapid-application-actions,
	body.home main .rapid-application-actions,
	body.home main .wp-block-buttons {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
		width: 100%;
		min-width: 0;
		align-items: stretch;
	}

	body:not(.home) main .entry-content > .wp-block-buttons:last-child {
		padding: 1rem !important;
	}

	body:not(.home) main .entry-content .wp-block-buttons > .wp-block-button,
	body:not(.home) main .entry-content .wp-block-buttons .wp-block-button__link,
	body:not(.home) main .ra-cta-actions .wp-block-button,
	body:not(.home) main .ra-cta-actions .wp-block-button__link,
	body:not(.home) main .ra-bottom-cta-actions > a,
	body:not(.home) main .ra-confirm-actions > a,
	body:not(.home) main .rapid-application-actions > a,
	body.home main .rapid-application-actions > a,
	body.home main .wp-block-buttons > .wp-block-button,
	body.home main .wp-block-buttons .wp-block-button__link {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		margin: 0;
		min-height: 48px;
	}
}

.ra-front-page-content {
	--wp--style--block-gap: 0px;
}

.ra-front-page-content > * + * {
	margin-block-start: 0;
}

.ra-front-page-content .wp-block-button__link:not(.has-background) {
	background-color: #d7f11d;
	color: #1f2d3d;
}

.ra-front-page-content .wp-block-button__link:not(.has-background):hover,
.ra-front-page-content .wp-block-button__link:not(.has-background):focus-visible {
	background-color: #c5df10;
	color: #1f2d3d;
}

@media (min-width: 900px) {
	.ra-site-nav .wp-block-navigation__responsive-container-open {
		display: none;
	}
}

@media (max-width: 899px) {
	.ra-site-header__inner {
		flex-wrap: nowrap !important;
		gap: 8px !important;
		width: calc(100% - 40px);
		min-height: 0;
		padding-top: 4px;
		padding-bottom: 4px;
	}

	.ra-site-header__brand {
		flex: 1 1 auto !important;
		min-width: 0;
		gap: 8px !important;
	}

	.ra-site-header .wp-block-site-logo {
		flex: 0 0 68px;
		width: 68px;
	}

	.ra-site-header .wp-block-site-logo img {
		width: 68px !important;
		height: auto !important;
	}

	.ra-site-title {
		display: none;
	}

	nav.ra-site-nav {
		flex: 0 0 44px;
		margin-left: auto;
	}

	.ra-site-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}

	.ra-site-nav .wp-block-navigation__responsive-container-open {
		display: flex !important;
	}
}

/* Single non-home content container: guide widths are specified by category above. */
body:not(.home) main :where(.entry-content) {
	width: calc(100% - 48px) !important;
	max-width: 1160px !important;
	margin-inline: auto !important;
	box-sizing: border-box;
}

body:not(.home):not(.page-id-927) main h1 {
	font-size: 40px !important;
	line-height: 1.12 !important;
}

@media (max-width: 782px) {
	body:not(.home) main :where(.entry-content) {
		width: calc(100% - 40px) !important;
	}

	body:not(.home):not(.page-id-927) main h1 {
		font-size: 30px !important;
		line-height: 1.15 !important;
	}

}

@media (max-width: 899px) {
	/* Mobile navigation: full-width vertical accordion with zero horizontal overflow. */
	.ra-site-nav .wp-block-navigation__responsive-container.is-menu-open {
		inset: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		padding: 0 !important;
		background: #ffffff;
		overflow-x: hidden !important;
		overflow-y: auto !important;
	}

	.ra-site-nav .wp-block-navigation__responsive-close,
	.ra-site-nav .wp-block-navigation__responsive-dialog {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box;
	}

	.ra-site-nav .wp-block-navigation__responsive-dialog {
		min-height: 100dvh;
		overflow-x: hidden !important;
	}

	.ra-site-nav .wp-block-navigation__responsive-container-close {
		top: 16px;
		right: 16px;
		width: 44px;
		height: 44px;
		padding: 10px;
		border-radius: 8px;
	}

	.ra-site-nav .wp-block-navigation__responsive-container-content {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box;
		padding: 72px 20px 32px !important;
		margin: 0 !important;
		align-items: stretch !important;
		justify-content: flex-start !important;
		overflow-x: hidden !important;
	}

	.ra-site-nav .wp-block-navigation__responsive-container-content > ul.wp-block-navigation__container,
	.ra-site-nav .wp-block-navigation__responsive-container-content > .wp-block-navigation__container {
		display: flex !important;
		flex: 0 1 auto !important;
		flex-direction: column !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		gap: 0 !important;
		align-items: stretch !important;
		justify-content: flex-start !important;
	}

	.ra-site-nav .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box;
		text-align: left;
	}

	.ra-site-nav .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > .wp-block-navigation-item {
		display: block !important;
		position: relative;
		margin: 0 !important;
		padding: 0 !important;
		border-bottom: 1px solid #e3e7eb;
	}

	.ra-site-nav .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		display: block;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		padding: 15px 48px 15px 4px !important;
		font-size: 16px !important;
		font-weight: 700;
		line-height: 1.35;
		letter-spacing: 0 !important;
		text-transform: none !important;
		white-space: normal !important;
		overflow-wrap: anywhere;
	}

	.ra-site-nav .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon {
		display: flex !important;
		position: absolute;
		top: 7px;
		right: 0;
		width: 44px;
		height: 44px;
		align-items: center;
		justify-content: center;
		margin: 0 !important;
		padding: 0 !important;
		border: 0;
		background: transparent;
	}

	.ra-site-nav .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon svg {
		width: 14px;
		height: 14px;
		transition: transform .18s ease;
	}

	.ra-site-nav .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon[aria-expanded="true"] svg {
		transform: rotate(180deg);
	}

	.ra-site-nav .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
		display: none !important;
		position: static !important;
		flex-direction: column !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box;
		margin: 0 !important;
		padding: 0 0 10px 18px !important;
		gap: 0 !important;
		border: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
		overflow: hidden !important;
	}

	.ra-site-nav .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon[aria-expanded="true"] + .wp-block-navigation__submenu-container,
	.ra-site-nav .wp-block-navigation__responsive-container-content .wp-block-navigation-item.has-child:has(> .wp-block-navigation__submenu-icon[aria-expanded="true"]) > .wp-block-navigation__submenu-container {
		display: flex !important;
	}

	.ra-site-nav .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container .wp-block-navigation-item {
		display: block !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
	}

	.ra-site-nav .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		display: block;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		padding: 9px 4px !important;
		font-size: 14px !important;
		font-weight: 500;
		line-height: 1.4;
		letter-spacing: 0 !important;
		text-transform: none !important;
		white-space: normal !important;
		overflow-wrap: anywhere;
		color: #3d3d3d;
	}
}
