/* Claripoly · wp-overrides.css — WordPress & Contact Form 7 integration tweaks */

/* Admin bar offset for sticky header & subnav when logged in */
.admin-bar .pg .site-head,
.admin-bar .pg .site-head.solid { top: 32px; }
.admin-bar .subnav { top: 130px; }
@media (max-width: 900px) {
  .admin-bar .subnav { top: 92px; }
}
@media (max-width: 782px) {
  .admin-bar .pg .site-head,
  .admin-bar .pg .site-head.solid { top: 46px; }
  .admin-bar .subnav { top: 106px; }
}

/* Honeypot field (hidden from users, visible to bots) */
.cp-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Contact Form 7 wrapper & feedback alignment */
.contact .wpcf7 { width: 100%; }
.contact .wpcf7-form-control-wrap { display: block; }
.contact .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: #b42318;
}
.contact .wpcf7 form .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: 8px;
  border-width: 1px;
  font-size: 14px;
  line-height: 1.5;
}
.contact .wpcf7 form.sent .wpcf7-response-output {
  border-color: #1772B4;
  background: #F2F7FB;
  color: #12334D;
}
.contact .wpcf7 form.invalid .wpcf7-response-output,
.contact .wpcf7 form.failed .wpcf7-response-output {
  border-color: #b42318;
  background: #FEF3F2;
  color: #7A271A;
}

/* Optional the_content() extensible block area on structured templates */
.wp-editor-sec { padding: 64px 0; }
.wp-editor-body { max-width: 78ch; font-size: 16px; line-height: 1.75; color: var(--ink-soft); }
.wp-editor-body > * + * { margin-top: 1em; }
.wp-editor-body h2, .wp-editor-body h3 { color: var(--black); font-family: var(--display); margin-top: 1.8em; }
.wp-editor-body a { color: var(--accent-deep); text-decoration: underline; }
.wp-editor-body img { max-width: 100%; height: auto; border-radius: 10px; }

/* Full-bleed step card images on product pages */
.steps.imgd .st-im { max-width: none; }

/* Guide article layout refinements: sticky step figure & guard against empty grid items */
.ar-steps .ar-img { position: sticky; top: 130px; }
@media (max-width: 700px) {
  .ar-steps .ar-img { position: static; }
}
.ar-ratio > p:empty { display: none; }
