/* ==========================================================================
   WordPress-specific styles — admin bar offsets, editor content, pagination,
   form feedback. Loaded after components.css, before the Tailwind build.
   ========================================================================== */

/* ---------- Admin bar: keep the overlay header below it ---------- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
/* On small screens the admin bar scrolls away, so the fixed header sits at 0. */
@media (max-width: 600px) {
  .admin-bar .site-header.is-scrolled { top: 0; }
}

/* ---------- Accessibility ---------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Missing image (no upload and no bundled fallback). */
.bbre-img-placeholder {
  background: var(--color-paper-dim);
  min-height: 12rem;
}

/* Torn-paper wave dividers (template-parts/wave.php). */
.lqd-custom-shape { display: block; width: 100%; }

/* ---------- Header logo image ---------- */
.custom-logo-img { max-height: 48px; width: auto; }

/* ---------- Enquiry form feedback ---------- */
[data-form-status].is-success { color: var(--color-olive); }
[data-form-status].is-error { color: #B3261E; }
.bbre-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[data-enquiry-form] button[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Editor content (default pages, blog posts) ---------- */
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content h2 { margin-top: 2.5rem; font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem); }
.entry-content h3 { margin-top: 2rem; }
.entry-content p,
.entry-content li { line-height: 1.75; color: var(--color-ink-soft); }
.entry-content a { color: var(--color-rust-dark); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--color-rust); }
.entry-content ul { list-style: disc; padding-left: 1.4rem; }
.entry-content ol { list-style: decimal; padding-left: 1.4rem; }
.entry-content li + li { margin-top: 0.4rem; }
.entry-content blockquote {
  border-left: 3px solid var(--color-rust);
  padding: 0.25rem 0 0.25rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-ink);
}
.entry-content img { height: auto; border-radius: var(--radius-md); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption,
.wp-caption-text { margin-top: 0.5rem; font-size: var(--fs-small); color: var(--color-ink-soft); text-align: center; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th,
.entry-content td { border: 1px solid var(--color-line); padding: 0.6rem 0.8rem; text-align: left; }
.entry-content hr { border-color: var(--color-line); margin-block: 2.5rem; }
.alignleft { float: left; margin: 0.4rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.4rem 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }

/* ---------- Pagination ---------- */
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.nav-links .page-numbers {
  min-width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  padding-inline: 0.75rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 600;
  background: var(--color-white);
}
.nav-links .page-numbers.current,
.nav-links .page-numbers:hover { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-white); }

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 0.5rem; max-width: 28rem; margin-inline: auto; }
.search-form label { flex: 1; }
.search-form .search-field {
  width: 100%;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-white);
}
.search-form .search-submit {
  padding: 0.8rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
}
