/* =========================================================
   Berry Bear — WordPress additions
   (single-post typography + Contact Form 7 shim + admin bar fix)
   The original style.css is kept untouched.
   ========================================================= */

/* Keep the sticky header below the WP admin bar */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 900px) {
  .admin-bar .nav-menu { top: calc(var(--nav-h) + 46px); }
}

/* ---------- Single post ---------- */
.post-single { padding: 70px 0 96px; }
.post-cover {
  max-width: 980px; margin: 0 auto 40px; border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.post-cover img { width: 100%; height: auto; display: block; }
.post-body {
  max-width: 780px; margin: 0 auto; background: var(--surface);
  border: 2px solid var(--line); border-radius: var(--r-lg);
  padding: 46px 48px; box-shadow: var(--shadow-sm);
}
.post-body > * { margin-bottom: 22px; }
.post-body h2 { font-size: 1.7rem; margin: 34px 0 14px; }
.post-body h3 { font-size: 1.35rem; margin: 28px 0 12px; }
.post-body p,
.post-body li { color: var(--ink); font-size: 1.08rem; line-height: 1.9; }
.post-body ul, .post-body ol { padding-inline-start: 24px; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 8px; }
.post-body a { color: var(--pink); text-decoration: underline; }
.post-body img { border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.post-body blockquote {
  border-inline-start: 5px solid var(--pink); background: var(--bg-2);
  padding: 18px 24px; border-radius: var(--r-sm); font-weight: 600; color: var(--navy);
}
.post-tags { max-width: 780px; margin: 26px auto 0; display: flex; flex-wrap: wrap; gap: 10px; }
.post-tags a {
  background: #fff; border: 2px solid var(--line); color: var(--ink-soft);
  padding: 6px 14px; border-radius: var(--r-pill); font-size: .86rem; font-weight: 600;
}
.post-tags a:hover { color: var(--pink); border-color: var(--pink); }
.post-nav {
  max-width: 780px; margin: 30px auto 0; display: flex; justify-content: space-between; gap: 16px;
}
.post-nav a { font-family: var(--font-display); font-weight: 700; color: var(--pink); }

/* Pagination (blog index) */
.berry-pagination { margin-top: 54px; text-align: center; }
.berry-pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px;
  margin: 0 4px; border-radius: var(--r-pill); background: #fff; border: 2px solid var(--line);
  font-family: var(--font-display); font-weight: 700; color: var(--navy);
}
.berry-pagination .page-numbers.current,
.berry-pagination .page-numbers:hover { background: var(--pink); color: #fff; border-color: var(--pink); }

/* Empty-state */
.berry-empty { text-align: center; color: var(--ink-soft); padding: 40px 0; font-weight: 600; }

/* ---------- Contact Form 7 → match the site form ---------- */
.contact-form .wpcf7 { margin: 0; }
.contact-form .wpcf7-form p { margin: 0; }
.contact-form .wpcf7-form .field { margin-bottom: 18px; }
/* CF7 wraps inputs in <span class="wpcf7-form-control-wrap"> — keep them full width */
.contact-form .wpcf7-form-control-wrap { display: block; }
.contact-form .wpcf7-not-valid-tip {
  color: var(--pink-deep); font-size: .85rem; font-weight: 600; margin-top: 6px; display: block;
}
.contact-form .wpcf7-not-valid { border-color: var(--pink-deep) !important; }
.contact-form .wpcf7 .wpcf7-response-output {
  margin: 16px 0 0; padding: 14px 18px; border-radius: var(--r-sm);
  border: 0; text-align: center; font-weight: 700;
}
.contact-form .wpcf7 form.sent .wpcf7-response-output {
  background: #DFF5E6; color: var(--green-deep);
}
.contact-form .wpcf7 form.invalid .wpcf7-response-output,
.contact-form .wpcf7 form.failed .wpcf7-response-output,
.contact-form .wpcf7 form.spam .wpcf7-response-output {
  background: #FFE3EF; color: var(--pink-deep);
}
.contact-form .wpcf7-spinner { margin: 14px auto 0; display: block; }
.contact-form .berry-submit,
.contact-form .wpcf7 input[type="submit"] { width: 100%; }
/* Honeypot / hidden helper never shows */
.contact-form .berry-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
