/* WordPress-only adjustments. Do not change the approved draft look. */

/* Keep the sticky header below the admin bar when the user is logged in. */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* Reserved blocks: CSS fallback if a cached page still contains the markup.
   The templates also omit this markup unless the theme mods are turned on. */
body.byfitgear-hide-factory-frames .proof-gallery,
body.byfitgear-hide-factory-frames .factory-block {
  display: none !important;
}
body.byfitgear-hide-feedback #feedback {
  display: none !important;
}

/* Blog / generic pages inherit draft typography. */
.entry-wrap { max-width: 44rem; }
.entry-header { margin-bottom: 2rem; }
.entry-header h1 { margin-bottom: 0.4em; }
.entry-date { margin: 0; }
.entry-content {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 2rem 0 0.65em;
  color: var(--ink);
}
.entry-content p { margin: 0 0 1.15em; }
.entry-content ul,
.entry-content ol { margin: 0 0 1.15em; padding-left: 1.25rem; }
.entry-content li { margin: 0.3em 0; }
.entry-content a { text-underline-offset: 3px; }
.entry-content img { margin: 1.4rem 0; }
.entry-content blockquote {
  margin: 1.6rem 0;
  padding: 0 0 0 1.2rem;
  border-left: 2px solid var(--oak);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
}
.entry-back { margin-top: 2.4rem; }
.single-entry .eyebrow a { color: inherit; text-decoration: none; letter-spacing: inherit; }
.single-entry .eyebrow a:hover { color: var(--oak-deep); }
.post-list article,
.post-list .post-teaser {
  margin: 0 0 2.4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.post-list h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 0.3em; }
.post-list h2 a { color: inherit; text-decoration: none; }
.post-list h2 a:hover { color: var(--oak); }
.entry-excerpt p { margin: 0.7rem 0 0; color: var(--ink-soft); }
.blog-empty { margin-top: 1.6rem; max-width: 36rem; }
.blog-empty .lede { margin-bottom: 0.7em; }

/* When Joinchat is active (official number already set), hide the theme float
   so two WhatsApp bubbles do not overlap. In-content WhatsApp links stay. */
body.byfitgear-has-joinchat .wa-float { display: none !important; }

/* Contact Form 7, styled to match the approved draft form fields. */
.byfitgear-cf7 .wpcf7 { margin: 0; }
.byfitgear-cf7 .wpcf7-form p { margin: 1rem 0 0; }
.byfitgear-cf7 .wpcf7-form label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--ink);
}
.byfitgear-cf7 .wpcf7-form input[type="text"],
.byfitgear-cf7 .wpcf7-form input[type="email"],
.byfitgear-cf7 .wpcf7-form input[type="tel"],
.byfitgear-cf7 .wpcf7-form input[type="url"],
.byfitgear-cf7 .wpcf7-form textarea {
  width: 100%;
  border: 1.5px solid var(--line-field);
  background: #fff;
  color: var(--ink);
  padding: 0.75rem 0.85rem;
  font-size: 1rem;
  border-radius: 0;
  appearance: none;
}
.byfitgear-cf7 .wpcf7-form input[type="text"]:focus,
.byfitgear-cf7 .wpcf7-form input[type="email"]:focus,
.byfitgear-cf7 .wpcf7-form input[type="tel"]:focus,
.byfitgear-cf7 .wpcf7-form input[type="url"]:focus,
.byfitgear-cf7 .wpcf7-form textarea:focus {
  outline: 2px solid var(--oak);
  outline-offset: 1px;
  border-color: var(--oak-deep);
}
.byfitgear-cf7 .wpcf7-form textarea { min-height: 8.5rem; resize: vertical; }
.byfitgear-cf7 .wpcf7-form input[type="submit"],
.byfitgear-cf7 .wpcf7-form button[type="submit"] {
  /* inherit the draft primary button look as far as CF7 allows */
  margin-top: 1.4rem;
}
.byfitgear-cf7 .wpcf7-not-valid-tip { color: #8B1E1E; font-size: 0.88rem; }
.byfitgear-cf7 .wpcf7-response-output { margin: 0.9rem 0 0; font-size: 0.95rem; }
