/* ==========================================================================
   WordPress layer
   Loaded after assets/css/styles.css. Only the rules that WordPress itself
   requires are here — the design system is untouched.
   ========================================================================== */

/* ---------- Admin bar: keep the sticky header below it ---------- */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
.admin-bar .filters,
.admin-bar .deal-panel,
.admin-bar .legal-toc { top: calc(var(--header-h) + 16px); }

/* ---------- Custom logo ---------- */
.brand__logo {
  width: auto;
  height: 42px;
  display: block;
  object-fit: contain;
}
@media (max-width: 420px) { .brand__logo { height: 34px; } }
@media (max-width: 360px) { .brand__logo { height: 30px; } }

/* ---------- Page intro copy (from the page editor) ---------- */
.page-intro p {
  color: var(--muted);
  max-width: 62ch;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.7;
  margin-top: 16px;
}
.page-intro p:first-child { margin-top: 20px; }
.page-intro a { color: var(--red-text); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Standard page content ---------- */
.page-prose { padding-top: 8px; }
.page-prose h2 { margin-top: 40px; }
.page-prose h2:first-child { margin-top: 0; }
.page-prose ul, .page-prose ol { margin: 0 0 20px; }
.page-prose img { border-radius: var(--radius); height: auto; }

/* ---------- Form status (server-rendered) ---------- */
.form-success--error .form-success__icon {
  background: rgba(227, 18, 43, .14);
  color: var(--red);
}
.form-success--error h3 { color: var(--red-text); }
.inquiry-panel .form-success h3 { color: #fff; }
.inquiry-panel .form-success--error h3 { color: #FF8C99; }
.inquiry-panel .form-success p { color: #C9CED6; }
.form-success { margin-top: 8px; }

/* ---------- Gallery ---------- */
.gallery__stage img { width: 100%; height: auto; display: block; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- WordPress content helpers ---------- */
.alignwide { width: min(1100px, 100vw - 40px); margin-inline: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text,
.wp-block-image figcaption {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 8px;
}
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  word-wrap: normal !important;
}
.sticky .vehicle-card__title::after { content: " ★"; color: var(--red); }

/* ---------- Pagination ---------- */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.nav-links .page-numbers {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav-links .page-numbers:hover { border-color: var(--ink); }
.nav-links .current {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ---------- Menu items injected by WordPress ---------- */
.nav__list .menu-item { display: flex; }
@media (max-width: 900px) {
  .nav__list .menu-item { display: block; }
}
.nav__list .sub-menu { display: none; }
