/* Quiet neutral surface behind the content panels. */
html body:not(.admin-layout) {
  background-color: #f7f8fa !important;
  background-image: linear-gradient(135deg, #eef1f4 0%, #f7f8fa 46%, #ffffff 100%) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 100% 100% !important;
  background-attachment: fixed !important;
}

html body:not(.admin-layout) > main,
html body:not(.admin-layout) .site-main {
  background: transparent !important;
}

html body:not(.admin-layout) .contact-submit-note {
  margin: 12px 0 0 !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.4 !important;
}

html body:not(.admin-layout) .contact-form-card {
  padding: 24px !important;
}

html body:not(.admin-layout) .contact-form-card .form-grid {
  gap: 16px !important;
}

html body:not(.admin-layout) .contact-form-card .form-grid label {
  gap: 5px !important;
  color: #172033 !important;
  font-size: 14px !important;
}

html body:not(.admin-layout) .contact-form-card input,
html body:not(.admin-layout) .contact-form-card select,
html body:not(.admin-layout) .contact-form-card textarea {
  margin-top: 2px !important;
  border-color: #cfd8e5 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

html body:not(.admin-layout) .contact-form-card input,
html body:not(.admin-layout) .contact-form-card select {
  min-height: 48px !important;
}

html body:not(.admin-layout) .contact-form-card input:focus,
html body:not(.admin-layout) .contact-form-card select:focus,
html body:not(.admin-layout) .contact-form-card textarea:focus {
  border-color: #c81e2a !important;
  box-shadow: 0 0 0 3px rgba(200, 30, 42, .10) !important;
}

html body:not(.admin-layout) .contact-form-card .required-mark {
  color: #c81e2a !important;
  font-weight: 900 !important;
}

html body:not(.admin-layout) .contact-form-card .field-label {
  display: inline !important;
}

html body:not(.admin-layout) .contact-form-card .contact-captcha-field {
  max-width: 240px !important;
}

html body:not(.admin-layout) .contact-form-card .btn[type="submit"] {
  min-width: 220px !important;
  margin-top: 18px !important;
}

/* Compact expandable controls across public pages. */
html body:not(.admin-layout) .modern-faq,
html body:not(.admin-layout) .faq-list {
  display: grid !important;
  gap: 8px !important;
  margin-top: 16px !important;
}

html body:not(.admin-layout) details.faq-item {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 10px !important;
  box-shadow: 0 5px 14px rgba(15, 23, 42, .045) !important;
}

html body:not(.admin-layout) details.faq-item > summary {
  min-height: 46px !important;
  padding: 11px 42px 11px 14px !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
}

html body:not(.admin-layout) details.faq-item > summary::after {
  right: 14px !important;
  width: 24px !important;
  height: 24px !important;
  font-size: 20px !important;
}

html body:not(.admin-layout) details.faq-item > .faq-body,
html body:not(.admin-layout) details.faq-item > p {
  margin: 0 !important;
  padding: 0 14px 13px !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

html body:not(.admin-layout) .home-faq {
  padding: 24px 0 38px !important;
}

html body:not(.admin-layout) .home-faq h2 {
  margin: 0 0 14px !important;
  font-size: clamp(22px, 2.2vw, 30px) !important;
}

/* Clear red chapter markers for every major homepage section. */
html body.route-index:not(.admin-layout) .home-sections > section,
html body.route-index:not(.admin-layout) .home-products-head {
  position: relative !important;
}

html body.route-index:not(.admin-layout) .home-sections > section::before,
html body.route-index:not(.admin-layout) .home-products-head::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 5px;
  border-radius: 0 5px 5px 0;
  background: linear-gradient(180deg, #ef233c, #b91c1c);
  box-shadow: 3px 0 12px rgba(200, 30, 42, .16);
  pointer-events: none;
}

@media (max-width: 640px) {
  html body.route-index:not(.admin-layout) .home-sections > section::before,
  html body.route-index:not(.admin-layout) .home-products-head::before {
    top: 12px;
    bottom: 12px;
    width: 4px;
  }
}

html body:not(.admin-layout) .service-section.service-accordion {
  margin-top: 10px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}

html body:not(.admin-layout) .service-accordion > summary,
html body:not(.admin-layout) .seo-accordion > summary,
html body:not(.admin-layout) .products-seo-footer .seo-faq details > summary {
  min-height: 46px !important;
  padding: 10px 12px 10px 14px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  box-shadow: none !important;
}

html body:not(.admin-layout) .service-accordion > summary::after,
html body:not(.admin-layout) .seo-accordion > summary::after,
html body:not(.admin-layout) .products-seo-footer .seo-faq details > summary::after {
  width: 26px !important;
  height: 26px !important;
  font-size: 18px !important;
}

html body:not(.admin-layout) .service-accordion[open],
html body:not(.admin-layout) .products-seo-intro.seo-accordion[open],
html body:not(.admin-layout) .products-seo-footer.seo-accordion[open] {
  padding-bottom: 14px !important;
}

html body:not(.admin-layout) .service-accordion[open] > *:not(summary),
html body:not(.admin-layout) .products-seo-intro.seo-accordion[open] > *:not(summary),
html body:not(.admin-layout) .products-seo-footer.seo-accordion[open] > *:not(summary) {
  margin-left: 14px !important;
  margin-right: 14px !important;
}

html body:not(.admin-layout) .products-seo-intro.seo-accordion,
html body:not(.admin-layout) .products-seo-footer.seo-accordion {
  padding: 0 !important;
}

html body:not(.admin-layout) .seo-links-grid {
  gap: 8px !important;
}

html body:not(.admin-layout) .seo-link-card {
  min-height: 48px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
}

html body:not(.admin-layout) .service-cta {
  gap: 8px !important;
  margin-top: 16px !important;
}

html body:not(.admin-layout) .service-cta .btn.btn-cta {
  min-height: 42px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  font-size: 13.5px !important;
  box-shadow: 0 7px 16px rgba(15, 23, 42, .07) !important;
}

html body:not(.admin-layout) .kit-full-description > summary {
  min-height: 48px !important;
  padding: 0 12px !important;
}

html body:not(.admin-layout) .kit-full-description-arrow {
  width: 28px !important;
  height: 28px !important;
  font-size: 18px !important;
}

html body:not(.admin-layout) .kit-detail-summary {
  min-height: 82px !important;
  padding: 9px 10px !important;
}

@media (max-width: 760px) {
  html body:not(.admin-layout) {
    background-position: center !important;
    background-size: 100% 100% !important;
    background-attachment: scroll !important;
  }

  html body:not(.admin-layout) .contact-form-card {
    padding: 16px !important;
    order: 1 !important;
  }

  html body:not(.admin-layout) .contact-info-card {
    order: 2 !important;
  }

  html body:not(.admin-layout) .contact-form-card .contact-captcha-field,
  html body:not(.admin-layout) .contact-form-card .btn[type="submit"] {
    width: 100% !important;
    max-width: none !important;
  }

  html body:not(.admin-layout) details.faq-item > summary {
    min-height: 44px !important;
    padding: 10px 40px 10px 12px !important;
    font-size: 14px !important;
  }

  html body:not(.admin-layout) .service-accordion > summary,
  html body:not(.admin-layout) .seo-accordion > summary,
  html body:not(.admin-layout) .products-seo-footer .seo-faq details > summary {
    min-height: 44px !important;
    padding: 9px 10px 9px 12px !important;
  }

  html body:not(.admin-layout) .service-cta .btn.btn-cta {
    min-height: 42px !important;
  }
}
