/* ==========================================================================
   WordPress adjustments
   --------------------------------------------------------------------------
   base.css is a verbatim copy of the live site stylesheet, so every override
   WordPress needs lives here instead of being patched into the original. Keep
   this file short: if a rule could live in base.css it belongs there.
   ========================================================================== */

/* ---------- Admin bar ---------------------------------------------------- */
/* The header is position:fixed; without this it slides under the admin bar and
   hides the top of the menu on every logged-in page view. */
body.admin-bar #header { top: 32px; }

body.admin-bar .hero { padding-top: calc(var(--header-h) + 78px + 32px); }

body.admin-bar .page-hero { padding-top: calc(var(--header-h) + 54px + 32px); }

@media screen and (max-width: 782px) {
  body.admin-bar #header { top: 46px; }
  body.admin-bar .hero { padding-top: calc(var(--header-h) + 78px + 46px); }
  body.admin-bar .page-hero { padding-top: calc(var(--header-h) + 54px + 46px); }
}

/* ---------- Logo --------------------------------------------------------- */
.logo img {
  max-height: 46px;
  width: auto;
  display: block;
}

/* ---------- Inquiry form states ----------------------------------------- */
/* The template coloured the result inline from JavaScript; the server-rendered
   form needs its own classes. */
.form-result {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--body);
}

.form-result.ok {
  border-color: #b7e0c4;
  background: #eefaf1;
  color: #14663a;
}

.form-result.error {
  border-color: #f0c2bd;
  background: #fdf1f0;
  color: #a3231a;
}

/* ---------- Pager -------------------------------------------------------- */
/* Page numbers as anchors inside .page-num need the same box as the template's
   span-based markup. */
.pager .page-num a {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--body);
}

.pager .page-num a.on {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.pager .page-num a:hover { background: var(--accent-soft); color: var(--accent); }
.pager .page-num a.on:hover { background: var(--accent); color: #fff; }

/* ---------- Editor alignment -------------------------------------------- */
.alignleft {
  float: left;
  margin: 6px 26px 18px 0;
}

.alignright {
  float: right;
  margin: 6px 0 18px 26px;
}

.aligncenter {
  display: block;
  margin: 18px auto;
}

.rich .wp-caption { max-width: 100%; }

.rich .wp-caption-text,
.rich figcaption {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

.rich .alignwide,
.rich .alignfull { width: 100%; }

/* ---------- Gutenberg utility ------------------------------------------- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #fff;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: var(--accent);
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ---------- Editor block colours ---------------------------------------- */
/* Gutenberg writes inline colours; the .rich defaults override borders only. */
.rich .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

.rich .wp-block-quote { border-left: 3px solid var(--accent); }

/* ---------- Menu fallback ------------------------------------------------ */
/* Shown before a menu is assigned, so the header never collapses. */
.nav-list > li > a[href*="nav-menus.php"] { color: var(--muted); font-style: italic; }

/* ---------- Empty state inside a grid ------------------------------------ */
.product-grid + .empty { margin-top: 24px; }
