/*
 * AVAVA Car — the design's pieces made of blocks.
 *
 * The design's stylesheet (assets/design/css/style.css) draws the pages by their classes; the
 * blocks keep those classes. This file covers what the blocks add or change on the way:
 *
 *   01. Blocks in the design's flow (margins, wrappers WordPress adds)
 *   02. Decorative pieces (.avava-orn) and links that fill their paragraph
 *   03. Header: info bar, Site Logo, actions
 *   04. Header: the main menu (Navigation block) as the design's dropdowns
 *   05. Header: the menu on tablets and phones
 *   06. Footer
 *   07. Ordinary pages, posts and archives
 */

/* == 01. Blocks in the design's flow ===================================== */
:where(.avava-hd, .avava-main, .avava-ft) :where(p, h1, h2, h3, h4, h5, h6, ul, ol, figure, blockquote) {
  margin-top: 0;
  margin-bottom: 0;
}

:where(.avava-main) > .avava-content,
:where(.avava-main) > .avava-content > .avava-page {
  margin: 0;
}

.avava-hd,
.avava-ft {
  display: contents;
}

:where(.avava-page, .avava-hd, .avava-ft) .wp-block-group {
  box-sizing: border-box;
}

:where(.avava-page, .avava-hd, .avava-ft) .wp-block-image {
  margin: 0;
}

/* The Image block carries the design's image classes on its <figure>: the picture inside fills
   the figure and takes its fit, position and rounding. */
:where(.avava-page, .avava-hd, .avava-ft) figure.wp-block-image[class*="__"] > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: inherit;
  object-position: inherit;
  border-radius: inherit;
}

:where(.avava-page, .avava-hd, .avava-ft) :where(hr.wp-block-separator) {
  margin: 0;
  border: 0;
  opacity: 1;
}

/* == 02. Decorative pieces =============================================== */
/* A paragraph that only carries an ornament (an svg, an empty span) takes no box. */
.avava-orn {
  display: contents;
}

/* A link of the design that was a box of its own (a pill, a "Learn more" row) is a paragraph
   holding the link: the paragraph keeps the design's classes and box, the link fills it and
   lays out its pieces the same way. */
.avava-link > a {
  display: inherit;
  flex-direction: inherit;
  flex-wrap: inherit;
  align-items: inherit;
  justify-content: inherit;
  gap: inherit;
  width: 100%;
  min-height: 100%;
  color: inherit;
  text-decoration: inherit;
}

/* == 03. Header: info bar, Site Logo, actions ============================ */
.hd .hd__util {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 36);
}

.hd .hd__links .wp-block-navigation__container {
  gap: calc(var(--u) * 36);
}

.hd .hd__links,
.hd .hd__links a {
  font-size: inherit;
  color: inherit;
}

.hd .hd__in {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 36);
}

.hd .hd__in::before {
  content: "";
  width: 1px;
  height: calc(var(--u) * 18);
  background: var(--hi15);
}

.hd .hd__in a {
  color: var(--ink);
}

.hd .hd__logo a {
  display: block;
}

.hd .hd__logo img {
  height: calc(var(--u) * 57);
  width: auto;
}

.hd .hd__acts {
  gap: calc(var(--u) * 16);
  flex-wrap: nowrap;
  align-items: center;
}

.hd .hd__acts > .wp-block-button {
  display: flex;
  line-height: 1;
}

.hd .hd__acts .wp-block-button__link {
  border-radius: 999px;
}

/* the colour scheme switch and the account link: round icon buttons */
.hd .hd__theme .wp-block-button__link,
.hd .hd__account .wp-block-button__link {
  position: relative;
  width: calc(var(--u) * 55);
  height: calc(var(--u) * 55);
  padding: 0;
  border: .5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 0;
  overflow: hidden;
}

.hd .hd__theme .wp-block-button__link::before,
.hd .hd__account .wp-block-button__link::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: calc(var(--u) * 22);
  height: calc(var(--u) * 22);
  background: currentColor;
  -webkit-mask: var(--avava-ico) center / contain no-repeat;
  mask: var(--avava-ico) center / contain no-repeat;
}

.hd .hd__theme {
  --avava-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5Z'/%3E%3C/svg%3E");
}

[data-theme="dark"] .hd .hd__theme {
  --avava-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3Cpath d='M12 2v2.5M12 19.5V22M2 12h2.5M19.5 12H22M4.9 4.9l1.8 1.8M17.3 17.3l1.8 1.8M4.9 19.1l1.8-1.8M17.3 6.7l1.8-1.8'/%3E%3C/svg%3E");
}

.hd .hd__account {
  --avava-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8.5' r='4'/%3E%3Cpath d='M4 21c1.3-4 4.4-6 8-6s6.7 2 8 6'/%3E%3C/svg%3E");
}

.hd .hd__theme .wp-block-button__link:hover,
.hd .hd__account .wp-block-button__link:hover {
  color: var(--acc-text);
  border-color: var(--acc);
}

.hd .hd__listing .wp-block-button__link {
  height: calc(var(--u) * 55);
  padding: 0 calc(var(--u) * 30);
  white-space: nowrap;
  background: var(--ink);
  color: var(--on-ink);
  display: flex;
  align-items: center;
  font-size: max(12px, calc(var(--u) * 20));
  letter-spacing: calc(var(--u) * 2.4);
  text-transform: uppercase;
  font-weight: 300;
}

.hd .hd__listing .wp-block-button__link:hover {
  background: var(--ink-h);
}

/* breadcrumbs (the Breadcrumbs block) as the design's crumbs */
.crumbs.wp-block-breadcrumbs ol {
  height: calc(var(--u) * 22);
  gap: calc(var(--u) * 14);
  flex-wrap: nowrap;
  font-size: max(12px, calc(var(--u) * 14));
  text-transform: uppercase;
  letter-spacing: calc(var(--u) * 3.08);
  color: var(--mute);
}

.crumbs.wp-block-breadcrumbs li {
  gap: calc(var(--u) * 14);
  white-space: nowrap;
}

.crumbs.wp-block-breadcrumbs li:not(:last-child)::after {
  content: "";
  width: calc(var(--u) * 10);
  height: calc(var(--u) * 10);
  min-width: 6px;
  min-height: 6px;
  margin: 0;
  opacity: 1;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4,2 8,6 4,10'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4,2 8,6 4,10'/%3E%3C/svg%3E") center / contain no-repeat;
}

.crumbs.wp-block-breadcrumbs a {
  color: var(--mute);
}

.crumbs.wp-block-breadcrumbs a:hover,
.crumbs.wp-block-breadcrumbs [aria-current] {
  color: var(--acc-text);
}

/* == 04. Header: the main menu as the design's dropdowns ================== */
@media (min-width: 1200px) {
  .hd__main > .hd__nav {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 10;
    width: max-content;
  }

  .hd__main > .hd__nav .wp-block-navigation__container > .wp-block-navigation-item {
    flex-shrink: 0;
  }

  .hd__main > .hd__nav .wp-block-navigation__container {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    height: calc(var(--u) * 55);
  }

  .hd__main > .hd__nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
    height: calc(var(--u) * 55);
    padding: 0 calc(var(--u) * 44);
    border-radius: calc(var(--u) * 28);
    border: .5px solid transparent;
    display: flex;
    align-items: center;
    gap: calc(var(--u) * 10);
    font-size: max(12px, calc(var(--u) * 20));
    text-transform: uppercase;
    letter-spacing: calc(var(--u) * 1.2);
    font-weight: 300;
    line-height: normal;
    color: var(--ink);
  }

  /* the arrow of a submenu sits inside the pill */
  .hd__main > .hd__nav .wp-block-navigation__container > .has-child > .wp-block-navigation-submenu__toggle {
    padding-right: calc(var(--u) * 64);
  }

  .hd__main > .hd__nav .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-icon {
    position: absolute;
    right: calc(var(--u) * 44);
    top: 50%;
    width: calc(var(--u) * 10);
    height: calc(var(--u) * 10);
    margin: calc(var(--u) * -5) 0 0;
    pointer-events: none;
    color: var(--ink);
  }

  .hd__main > .hd__nav .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-icon svg {
    width: 100%;
    height: 100%;
    margin: 0;
    stroke-width: 1.2px;
  }

  .hd__main > .hd__nav .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content,
  .hd__main > .hd__nav .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation__submenu-icon,
  .hd__main > .hd__nav .wp-block-navigation__container > .has-child > [aria-expanded="true"],
  .hd__main > .hd__nav .wp-block-navigation__container > .has-child > [aria-expanded="true"] + .wp-block-navigation__submenu-icon {
    color: var(--acc-text);
  }

  .hd__main > .hd__nav .wp-block-navigation__container > .current-menu-item > .wp-block-navigation-item__content,
  .hd__main > .hd__nav .wp-block-navigation__container > .current-menu-ancestor > .wp-block-navigation-item__content {
    border-color: var(--ink);
  }

  /* the dropdown card */
  .hd__main > .hd__nav .wp-block-navigation__submenu-container {
    counter-reset: avava-dd;
    width: calc(var(--u) * 380);
    min-width: 0;
    padding: calc(var(--u) * 10) calc(var(--u) * 28);
    border-radius: calc(var(--u) * 24);
    border: .5px solid var(--ink) !important;
    background: var(--hs96) !important;
    color: var(--ink) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    z-index: 99999;
  }

  .hd__main > .hd__nav .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container {
    top: calc(var(--u) * 67);
    left: 0;
  }

  /* a strip under the pill keeps the dropdown open while the pointer travels down */
  .hd__main > .hd__nav .wp-block-navigation__container > .has-child::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: calc(var(--u) * 12);
  }

  /* open on hover, as in the design (click and keyboard open it too) */
  .hd__main > .hd__nav .has-child:hover > .wp-block-navigation__submenu-container {
    visibility: visible;
    opacity: 1;
    width: calc(var(--u) * 380);
    height: auto;
    overflow: visible;
  }

  .hd__main > .hd__nav .wp-block-navigation__submenu-container .wp-block-navigation-item {
    position: relative;
    counter-increment: avava-dd;
  }

  .hd__main > .hd__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    display: flex;
    align-items: center;
    gap: calc(var(--u) * 22);
    width: 100%;
    padding: calc(var(--u) * 18) 0;
    border-bottom: .5px solid var(--hi18);
    color: var(--ink);
    font-size: max(12px, calc(var(--u) * 17));
    text-transform: uppercase;
    letter-spacing: calc(var(--u) * 2.04);
    font-weight: 300;
    white-space: nowrap;
    text-align: left;
  }

  .hd__main > .hd__nav .wp-block-navigation__submenu-container > .wp-block-navigation-item:last-child > .wp-block-navigation-item__content {
    border-bottom: 0;
  }

  /* the row number (01, 02…) and the arrow */
  .hd__main > .hd__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content::before {
    content: counter(avava-dd, decimal-leading-zero);
    font-size: max(12px, calc(var(--u) * 13));
    letter-spacing: calc(var(--u) * 1.3);
    color: var(--mute);
  }

  .hd__main > .hd__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__label {
    flex: 1;
  }

  .hd__main > .hd__nav .wp-block-navigation__submenu-container .wp-block-navigation-link > .wp-block-navigation-item__content::after {
    content: "";
    width: calc(var(--u) * 18);
    height: calc(var(--u) * 18);
    opacity: .35;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='12' x2='20' y2='12'/%3E%3Cpolyline points='14,6 20,12 14,18'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='12' x2='20' y2='12'/%3E%3Cpolyline points='14,6 20,12 14,18'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .hd__main > .hd__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
  .hd__main > .hd__nav .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content {
    color: var(--acc-text);
  }

  /* groups (Listing): the group rows open a second card to the right */
  .hd__main > .hd__nav .wp-block-navigation__submenu-container .wp-block-navigation-submenu > .wp-block-navigation-item__content {
    font-weight: 300;
  }

  .hd__main > .hd__nav .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon {
    position: absolute;
    right: 0;
    top: 50%;
    width: calc(var(--u) * 12);
    height: calc(var(--u) * 12);
    margin: calc(var(--u) * -6) 0 0;
    opacity: .6;
    pointer-events: none;
  }

  /* WordPress turns the chevron of a nested submenu to point right already */
  .hd__main > .hd__nav .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon svg {
    transform: rotate(-90deg);
  }

  .hd__main > .hd__nav .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
    width: calc(var(--u) * 340);
    /* right next to the first card (its padding + 8px), so the pointer can cross */
    left: calc(100% + var(--u) * 28 + 8px) !important;
    top: calc(var(--u) * -20) !important;
    visibility: hidden;
    opacity: 0;
  }

  /* an invisible bridge over the gap keeps the menu open on the way to the second card */
  .hd__main > .hd__nav .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 100%;
    width: calc(var(--u) * 28 + 12px);
  }

  .hd__main > .hd__nav .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    gap: calc(var(--u) * 18);
    padding: calc(var(--u) * 16) 0;
    font-size: max(12px, calc(var(--u) * 16));
  }

  .hd__main > .hd__nav .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container .wp-block-navigation-item__content::before {
    font-size: max(12px, calc(var(--u) * 12));
  }

  .hd__main > .hd__nav .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after {
    display: none;
  }

  /* one group at a time: the first, or the one under the pointer (main.js sets .is-open) */
  .hd__main > .hd__nav .nav__groups > .wp-block-navigation__submenu-container:not(:has(> .is-open)) > .wp-block-navigation-submenu:first-child > .wp-block-navigation__submenu-container,
  .hd__main > .hd__nav .nav__groups > .wp-block-navigation__submenu-container > .is-open > .wp-block-navigation__submenu-container,
  .hd__main > .hd__nav .wp-block-navigation__submenu-container .wp-block-navigation-submenu > [aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
    visibility: visible;
    opacity: 1;
    height: auto;
    width: calc(var(--u) * 340);
    overflow: visible;
  }

  .hd__main > .hd__nav .nav__groups > .wp-block-navigation__submenu-container:not(:has(> .is-open)) > .wp-block-navigation-submenu:first-child > .wp-block-navigation-item__content,
  .hd__main > .hd__nav .nav__groups > .wp-block-navigation__submenu-container > .is-open > .wp-block-navigation-item__content {
    color: var(--acc-text);
  }

  .hd__main > .hd__nav .wp-block-navigation__responsive-container-open {
    display: none;
  }
}

/* == 05. Header: the menu on tablets and phones ========================== */
@media (max-width: 1199px) {
  .hd .hd__main {
    gap: 12px;
  }

  .hd .hd__logo {
    margin-right: auto;
  }

  .hd__main > .hd__nav {
    order: 3;
  }

  .hd .hd__logo img {
    height: 44px;
  }

  /* the menu button: the design's round burger */
  .hd__main > .hd__nav .wp-block-navigation__responsive-container-open {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: .5px solid var(--ink);
    color: var(--ink);
  }

  .hd__main > .hd__nav .wp-block-navigation__responsive-container.is-menu-open {
    padding: 100px var(--gut) 40px;
    background: var(--bg) !important;
    color: var(--ink) !important;
  }

  .hd__main > .hd__nav .is-menu-open .wp-block-navigation__responsive-container-content {
    max-width: 560px;
    margin: 0 auto;
    align-items: stretch;
  }

  .hd__main > .hd__nav .is-menu-open .wp-block-navigation__container {
    gap: 0;
    align-items: stretch;
  }

  .hd__main > .hd__nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
    width: 100%;
    min-height: 60px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    border-bottom: .5px solid var(--line);
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 300;
  }

  .hd__main > .hd__nav .is-menu-open .wp-block-navigation-item__content {
    color: var(--ink);
  }

  .hd__main > .hd__nav .is-menu-open .current-menu-item > .wp-block-navigation-item__content,
  .hd__main > .hd__nav .is-menu-open .current-menu-ancestor > .wp-block-navigation-item__content {
    color: var(--acc-text);
  }

  .hd__main > .hd__nav .is-menu-open .wp-block-navigation__submenu-container {
    padding: 4px 0 12px 16px !important;
    gap: 0;
  }

  .hd__main > .hd__nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    padding: 12px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .1em;
  }
}

@media (max-width: 767px) {
  .hd .hd__logo img {
    height: 38px;
  }

  .hero .hero__links .wp-block-social-link,
  .ft .ft__social .wp-block-social-link {
    width: 44px;
    height: 44px;
  }

  .crumbs.wp-block-breadcrumbs ol {
    height: auto;
    flex-wrap: wrap;
    row-gap: 6px;
    font-size: 12px;
  }

  .hd .hd__acts > .hd__account,
  .hd .hd__acts > .hd__listing {
    display: none;
  }

  .hd .hd__acts {
    gap: 8px;
  }

  .hd .hd__main {
    gap: 8px;
  }

  .hd .hd__theme .wp-block-button__link {
    width: 44px;
    height: 44px;
  }
}

.ft .ft__logo.wp-block-site-logo {
  height: auto;
}

.ft .ft__logo.wp-block-site-logo img {
  height: calc(var(--u) * 64);
  width: auto;
}

@media (max-width: 1199px) {
  .ft .ft__logo.wp-block-site-logo img {
    height: 44px;
  }
}

@media (max-width: 767px) {
  .ft .ft__logo.wp-block-site-logo img {
    height: 38px;
  }
}

/* == 06. Social links and footer ======================================== */
/* The Social Icons block as the design's round outline buttons (.circ) */
.hero__links.wp-block-social-links,
.ft__social.wp-block-social-links {
  margin: 0;
  padding: 0;
  gap: calc(var(--u) * 12);
}

.hero__links.wp-block-social-links {
  flex-direction: column;
  align-items: center;
  gap: calc(var(--u) * 14);
}

.hero__links .wp-block-social-link,
.ft__social .wp-block-social-link {
  width: calc(var(--u) * 55);
  height: calc(var(--u) * 55);
  margin: 0;
  border-radius: 50%;
  border: .5px solid var(--ink);
  background: transparent !important;
  color: var(--ink) !important;
  flex-shrink: 0;
}

.hero__links .wp-block-social-link {
  background: var(--glass50) !important;
  transition: background .2s, color .2s;
}

.hero__links .wp-block-social-link-anchor,
.ft__social .wp-block-social-link-anchor {
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.hero__links .wp-block-social-link-anchor svg,
.ft__social .wp-block-social-link-anchor svg {
  width: calc(var(--u) * 22);
  height: calc(var(--u) * 22);
  min-width: 12px;
  min-height: 12px;
  fill: currentColor;
}

.hero__links .wp-block-social-link:hover,
.ft__social .wp-block-social-link:hover {
  color: var(--acc-text) !important;
  transform: none;
}

.ft .ft__drive > a {
  display: contents;
  color: inherit;
}

/* == 07. Ordinary pages, posts and archives ============================= */
.avava-prose .phead--wp {
  height: auto;
  min-height: calc(var(--u) * 300);
  margin: 0 var(--gut);
}

.avava-prose .phead--wp .phead__txt {
  position: static;
  padding-top: calc(var(--u) * 120);
  padding-bottom: calc(var(--u) * 44);
}

.avava-prose .avava-entry,
.avava-prose .avava-feed,
.avava-prose > .avava-content {
  padding: 0 var(--gut) calc(var(--u) * 140);
  font-size: max(16px, calc(var(--u) * 22));
  line-height: 1.6;
  color: var(--body);
}

.avava-prose :where(.avava-content) :where(p, ul, ol, blockquote, figure, h2, h3, h4) {
  margin-bottom: 1em;
}

.avava-prose :where(.avava-content) :where(h2, h3, h4) {
  color: var(--ink);
  line-height: 1.2;
  margin-top: 1.4em;
}

.avava-prose a:where(:not(.wp-element-button)) {
  color: var(--acc-text);
}

/* == 08. Car pages ======================================================= */
/* A condition point placed by the car's own data (its position on the side photo). */
.lsv-spot.avava-spot {
  left: var(--x);
  top: var(--y);
}

.lst-spot.avava-spot {
  left: var(--x);
  top: var(--y);
}

/* The service card's photo (the design's slot, now a picture) fills its frame. */
.svx__photo--img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FAQ guides: the owner's cover photos fill the cover box (the tag and the ring stay on top) */
.hgc__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

/* Car page v6: a question the car's file cannot answer — the link that sends it to the team */
.lsy-msg:has(.lsy-msg__ask) {
	flex-direction: column;
	align-items: flex-start;
	gap: calc(var(--u, 1px) * 8);
}

.lsy-msg__ask {
	color: var(--acc-text);
	font-size: max(12px, calc(var(--u, 1px) * 14));
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Car of the week: the title links to the car */
.cw__titlelink {
	color: inherit;
	text-decoration: none;
}

/* Car of the week with a car the stage art was not made for: its own photos, framed plainly */
.cw--photo .cw__car,
.cw--photo .cw__ang,
[data-theme="dark"] .cw--photo .cw__car,
[data-theme="dark"] .cw--photo .cw__ang {
	background-position: 50% 60%;
	background-size: min(100%, calc(var(--u, 1px) * 2200)) auto;
	background-repeat: no-repeat;
	mix-blend-mode: normal;
	filter: none;
	-webkit-mask-image: radial-gradient(ellipse 46% 52% at 50% 58%, #000 60%, transparent 100%);
	mask-image: radial-gradient(ellipse 46% 52% at 50% 58%, #000 60%, transparent 100%);
}

.cw--photo .thumb.thumb--img {
	background-size: cover;
	background-position: center;
}

/* Stats: the showroom's "closed now" dot */
.dot.dot--off {
	background: var(--mute);
	box-shadow: none;
	animation: none;
}

/* Shop: a product's name opens its page */
a.g2-card__n,
a.g2-row__n,
a.shp-card__n,
.shp-kit__t a,
a.ts-card__n,
a.s4c__name {
	color: inherit;
	text-decoration: none;
}

/* Shop: a product that is sold out */
.shp-add.is-out,
.shp-kit__add.is-out,
.ts-add.is-out,
.s4c__add.is-out {
	background: var(--sg-chip, var(--surf));
	color: var(--ink);
	cursor: default;
}

/* Product page: the macro photo behind the compound texts */
.pd-dh__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Product page: gauges and the model timeline are drawn from the product's figures */
.pd-g__fill--x {
	width: var(--f0);
}

.pd-g__ref--x {
	left: var(--f1);
}

.pd[data-comp="1"] .pd-g__fill--x {
	width: var(--f1);
}

.pd[data-comp="1"] .pd-g__ref--x {
	left: var(--f0);
}

/* Product page: "in the box" ticks instead of photo slots */
.pd-box__th {
	background: rgba(255, 255, 255, .06);
	color: var(--acc-text);
	font-family: inherit;
	font-size: max(12px, calc(var(--u) * 16));
}

.pd-bti__n a {
	color: inherit;
	text-decoration: none;
}

/* Product page: a product without reviews yet, and a description in place of the compound texts */
.pd-rv__none {
	margin: 0;
	padding: calc(var(--u) * 40) 0;
	opacity: .7;
}

.pd-dh--text .pd-dh__body p {
	margin: 0 0 1em;
}

/* Product showroom: the option line sits under the price, so the column does not jump as the price changes */
.p2-price__s {
	flex-basis: 100%;
}

/* Product page: a product with one photo has no thumbnails or photo arrows */
.pd--one .pd-gal {
	grid-template-columns: minmax(0, 1fr);
}

.pd--one .pd-thumbs,
.pd--one .pd-nav,
.pd--one .p2-rail,
.pd--one .p2-nav {
	display: none;
}

@media (min-width: 1200px) {
	.pd--one .p2-hero {
		grid-template-columns: minmax(0, 1fr) calc(var(--u) * 940);
	}
}

/* == WooCommerce cart, checkout and order received in the design's checkout style ========= */
.avava-woo .ck-sec--lock::before {
	content: "";
	width: 1em;
	height: 1.1em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18' fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='1.5' y='8' width='13' height='9' rx='2'/%3E%3Cpath d='M4.5 8V5.5a3.5 3.5 0 0 1 7 0V8'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18' fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='1.5' y='8' width='13' height='9' rx='2'/%3E%3Cpath d='M4.5 8V5.5a3.5 3.5 0 0 1 7 0V8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.avava-woo__body {
	padding-top: calc(var(--u) * 50);
	padding-bottom: calc(var(--u) * 80);
}

.avava-woo .wc-block-components-sidebar-layout {
	margin: 0;
	gap: calc(var(--u) * 60);
	flex-wrap: nowrap;
}

.avava-woo .wc-block-components-main {
	padding-right: 0;
}

/* steps as the design's cards, numbered */
.avava-woo .wc-block-checkout__form {
	counter-reset: avava-ck;
	display: flex;
	flex-direction: column;
	gap: calc(var(--u) * 16);
}

.avava-woo .wc-block-components-checkout-step {
	counter-increment: avava-ck;
	margin: 0 !important;
	padding: calc(var(--u) * 34) calc(var(--u) * 40) calc(var(--u) * 40) !important;
	border-radius: calc(var(--u) * 32);
	background: var(--surf);
}

.avava-woo .wc-block-components-checkout-step::after {
	display: none;
}

.avava-woo .wc-block-components-checkout-step__heading {
	margin: 0 0 calc(var(--u) * 24);
	display: flex;
	align-items: center;
	gap: calc(var(--u) * 22);
}

.avava-woo .wc-block-components-checkout-step__heading::before {
	content: counter(avava-ck);
	flex-shrink: 0;
	width: calc(var(--u) * 52);
	height: calc(var(--u) * 52);
	min-width: 32px;
	min-height: 32px;
	border-radius: 50%;
	background: var(--sg-chip);
	color: var(--mute);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: ui-monospace, Menlo, monospace;
	font-size: max(12px, calc(var(--u) * 16));
}

.avava-woo .wc-block-components-checkout-step__title,
.avava-woo .wc-block-cart__totals-title,
.avava-woo .wc-block-components-checkout-order-summary__title-text {
	margin: 0;
	font-size: max(16px, calc(var(--u) * 32)) !important;
	font-weight: 300 !important;
	letter-spacing: -.02em;
	line-height: 1.3;
	text-transform: none !important;
}

.avava-woo .wc-block-components-checkout-step__container,
.avava-woo .wc-block-components-checkout-step__content {
	padding: 0 !important;
}

/* fields */
.avava-woo .wc-block-components-text-input input,
.avava-woo .wc-block-components-text-input textarea,
.avava-woo .wc-blocks-components-select .wc-blocks-components-select__select,
.avava-woo .wc-block-components-textarea,
.avava-woo .wc-block-components-combobox .components-combobox-control input {
	border: .5px solid var(--line2) !important;
	border-radius: calc(var(--u) * 18) !important;
	background: var(--surf) !important;
	color: var(--ink) !important;
	font-weight: 300;
}

.avava-woo .wc-block-components-text-input.is-active input,
.avava-woo .wc-block-components-text-input input:focus,
.avava-woo .wc-blocks-components-select__select:focus {
	border-color: var(--ink) !important;
	box-shadow: none !important;
}

.avava-woo .wc-block-components-text-input label,
.avava-woo .wc-blocks-components-select__label {
	color: var(--mute);
}

/* shipping and payment choices as the design's option tiles */
.avava-woo .wc-block-components-radio-control--highlight-checked,
.avava-woo .wc-block-components-radio-control-accordion-option {
	border-radius: calc(var(--u) * 18);
}

.avava-woo .wc-block-components-radio-control__option,
.avava-woo .wc-block-components-radio-control-accordion-option {
	border-radius: calc(var(--u) * 18) !important;
}

.avava-woo .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option--checked-option-highlighted,
.avava-woo .wc-block-components-radio-control-accordion-option--checked-option-highlighted {
	box-shadow: inset 0 0 0 1.5px var(--acc) !important;
	background: var(--acc-a06);
}

.avava-woo .wc-block-components-radio-control__input:checked,
.avava-woo .wc-block-components-checkbox__input:checked {
	border-color: var(--acc) !important;
	background-color: var(--acc) !important;
}

/* the order summary card */
.avava-woo .wc-block-components-sidebar {
	padding-left: 0;
}

.avava-woo .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block,
.avava-woo .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block {
	padding: calc(var(--u) * 30) calc(var(--u) * 30) calc(var(--u) * 24);
	border: 0;
	border-radius: calc(var(--u) * 36);
	background: var(--surf);
}

.avava-woo .wc-block-components-totals-wrapper {
	border-color: var(--sg-ln) !important;
}

.avava-woo .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-family: 'BBH Bartle', Geist, sans-serif;
	font-size: max(22px, calc(var(--u) * 52));
	font-weight: 400;
	line-height: 1.2;
	color: var(--acc-text);
}

.avava-woo .wc-block-components-order-summary-item__quantity {
	border-color: var(--surf);
	background: var(--ink);
	color: var(--surf);
	box-shadow: none;
}

/* the buttons: the design's pills */
.avava-woo .wc-block-components-checkout-place-order-button,
.avava-woo .wc-block-cart__submit-button,
.avava-woo .wc-block-components-button:not(.is-link) {
	min-height: calc(var(--u) * 80);
	border: 0 !important;
	border-radius: calc(var(--u) * 48) !important;
	background: var(--acc) !important;
	color: #fff !important;
	font-size: max(12px, calc(var(--u) * 16));
	text-transform: uppercase;
	letter-spacing: calc(var(--u) * 2.56);
}

.avava-woo .wc-block-components-checkout-place-order-button:hover,
.avava-woo .wc-block-cart__submit-button:hover {
	background: var(--ink) !important;
}

.avava-woo .wc-block-checkout__actions {
	padding: calc(var(--u) * 10) 0 0;
}

.avava-woo .wc-block-components-notice-banner {
	border-radius: calc(var(--u) * 18);
}

/* order received */
.avava-woo .wc-block-order-confirmation-status,
.avava-woo .wc-block-order-confirmation-summary,
.avava-woo .wp-block-woocommerce-order-confirmation-totals-wrapper,
.avava-woo .wp-block-woocommerce-order-confirmation-additional-fields-wrapper,
.avava-woo .wp-block-woocommerce-order-confirmation-shipping-wrapper {
	max-width: none;
	margin-bottom: calc(var(--u) * 16);
	padding: calc(var(--u) * 34) calc(var(--u) * 40);
	border-radius: calc(var(--u) * 32);
	background: var(--surf);
}

.avava-woo > .wp-block-woocommerce-order-confirmation-summary,
.avava-woo > .wp-block-woocommerce-order-confirmation-totals-wrapper,
.avava-woo > .wp-block-woocommerce-order-confirmation-additional-fields-wrapper,
.avava-woo > .wp-block-woocommerce-order-confirmation-shipping-wrapper {
	margin-left: var(--gutter, 34px);
	margin-right: var(--gutter, 34px);
}

@media (max-width: 1199px) {
	.avava-woo .wc-block-components-sidebar-layout {
		flex-wrap: wrap;
	}

	.avava-woo .wc-block-components-checkout-step {
		padding: 20px !important;
		border-radius: 22px;
	}
}

/* WooCommerce's account pages: fields and buttons as the design draws them */
.woocommerce-account .woocommerce form .input-text,
.woocommerce-account .woocommerce form select {
	min-height: 52px;
	padding: 0 18px;
	border: .5px solid var(--line2);
	border-radius: 16px;
	background: var(--surf);
	color: var(--ink);
}

.woocommerce-account .woocommerce form.login,
.woocommerce-account .woocommerce form.register,
.woocommerce-account .woocommerce form.lost_reset_password {
	border: 0;
	border-radius: 28px;
	background: var(--surf);
	padding: 32px;
}

.woocommerce-account .woocommerce .button,
.woocommerce-account .woocommerce button.button {
	min-height: 48px;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: var(--acc);
	color: #fff;
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: 13px;
}

.woocommerce-account .woocommerce .button:hover {
	background: var(--ink);
	color: var(--surf);
}


/* == Colour tokens: the design's colours follow the theme's palette (Global Styles), and text
   colours meet WCAG 2.1 AA contrast in both schemes ============================================ */
:root:not([data-skin]) {
	--acc: var(--wp--preset--color--accent, #d3450e);
	--acc-a03: rgb(from var(--acc) r g b / .03);
	--acc-a04: rgb(from var(--acc) r g b / .04);
	--acc-a06: rgb(from var(--acc) r g b / .06);
	--acc-a07: rgb(from var(--acc) r g b / .07);
	--acc-a08: rgb(from var(--acc) r g b / .08);
	--acc-a10: rgb(from var(--acc) r g b / .1);
	--acc-a12: rgb(from var(--acc) r g b / .12);
	--acc-a14: rgb(from var(--acc) r g b / .14);
	--acc-a16: rgb(from var(--acc) r g b / .16);
	--acc-a18: rgb(from var(--acc) r g b / .18);
	--acc-a20: rgb(from var(--acc) r g b / .2);
	--acc-a24: rgb(from var(--acc) r g b / .24);
	--acc-a25: rgb(from var(--acc) r g b / .25);
	--acc-a30: rgb(from var(--acc) r g b / .3);
	--acc-a35: rgb(from var(--acc) r g b / .35);
	--acc-a40: rgb(from var(--acc) r g b / .4);
	--acc-a45: rgb(from var(--acc) r g b / .45);
	--acc-a50: rgb(from var(--acc) r g b / .5);
}

/* small accent text (labels, numbers) reads at AA: a touch darker on light grounds, lighter on
   dark ones; buttons and large text keep the brand accent itself (see the end of this file) */
:root {
	--acc-on-light: hsl(from var(--acc) h s calc(l * .9));
	--acc-on-dark: hsl(from var(--acc) h s calc(l * 1.23));
	--acc-text: var(--acc-on-light);
	--mute: var(--wp--preset--color--mute, #656b74);
	--ok: #177246;
	--ok-text: var(--ok);
	--pd-ok: var(--ok);
}

[data-theme="dark"] {
	--mute: #9aa0aa;
	--ok-text: #34b277;
	--acc-text: var(--acc-on-dark);
}

/* dark panels inside the light scheme read like the dark scheme */
.tmq,
.upplus,
.pd-box,
.pd-rvband,
.pd-dh,
.lsw-sum,
.lsx-card--ink,
.g2-promo,
.lsx-a,
.ts-brand,
.shp-kit--ink,
.hct__band,
.hcb,
.hhuman,
.lsg-band,
.cnn,
.lsv-con,
.visit__tag,
.prom__card--dark {
	--acc-text: var(--acc-on-dark);
	--ok-text: #34b277;
	--mute: #9aa0aa;
}

/* AA for small text (approved 09.10.2026): the muted grey of these dark panels follows the
   panel's own muted colour, the map tag turns light in the dark scheme, a white pill reads
   the accent for light grounds, and labels on accent buttons are full white, not faded. */
.lsg-band__lbl > span,
.lsg-score__of,
.lsg-vin__k,
.cnn__l,
.cnn__sl,
.lsv-con__k,
.lsv-con__note,
.lsv-con__reset,
.lsv-con label,
.lsv-con [id$="-k"],
.tmq__sub,
.hag__r,
.hag__s.is-off,
.hct__info > span,
.js-hf-agentline {
	color: var(--mute);
}

/* the finance result's small lines sit on the accent: full white, not faded (AA) */
.fres__lbl,
.fres__apr {
	opacity: 1;
}

.lsg-vin__k {
	--mute: #9aa0aa;
}

[data-theme="dark"] .visit__tag,
.cnc__chat {
	--acc-text: var(--acc-on-light);
}

.cnc__top,
.lsv-mb__s--fin .lsv-mb__top,
.lsv-term.is-on .lsv-term__u {
	opacity: 1;
}

.cnc__top,
.lsv-mb__s--fin .lsv-mb__top,
.lsv-term.is-on .lsv-term__n,
.lsv-term.is-on .lsv-term__u {
	color: #fff;
}

.hrail__it.is-on .hrail__n {
	-webkit-text-stroke-color: var(--acc-text);
}

.tmq__eb,
.tmq__l,
.pd-rvband__num,
.pd-rvband .pd-rv__car,
.lsw-sum__k,
.lsw-sum__tk,
.lsw-sum__note,
.lsw-sum__small,
.lsx-card--ink .lsx-card__eb,
.g2-promo__eb,
.hct__st,
.hct__now span,
.hct__eb,
.hcb__l {
	color: #9aa0aa;
}

/* AA contrast where the design dims text with opacity */
.shp-card__rn,
.shp-kit__was,
.tms__d,
.pd-ft__sub,
.pd-ft__n {
	opacity: 1;
}

.shp-kit__was {
	color: var(--mute);
}

.pd .pd-sp__s,
.pd .pd-sp__t {
	opacity: 1 !important;
}

.pd[data-comp="0"] .pd-sp__t,
.pd[data-comp="1"] .pd-sp__s {
	color: var(--mute);
}

.ft__drivel,
.is-hot .tms__top span {
	color: #fff;
}

.wzpv__st:not(.is-live) {
	background: #656b74;
}

/* the outlined figures are decoration, still drawn at 3:1 like large text */
:root {
	--tm-num: #8a9099;
	--tm-ver: #8a9099;
}

[data-theme="dark"] {
	--tm-num: #6a6e75;
	--tm-ver: #6a6e75;
}

.is-hot .tms__fig {
	color: transparent;
	-webkit-text-stroke-color: rgba(255, 255, 255, .7);
}

.is-hot .tms__top,
.is-hot .tms__top span {
	opacity: 1;
}

/* text on the accent and on the green fills: plain white */
.l4c__price .l4c__per,
.l4c__price .l4c__full,
.lsy-slot.is-on .lsy-slot__d,
.lsx-slot.is-on .lsx-slot__d,
.l6tile.is-on .l6tile__s,
.l4t__tab.is-on .l4t__ts,
.l3s__cond.is-on .l3s__cs,
.p2-comp__in:checked + .p2-comp__b .p2-comp__d,
.p2-bf__k,
.ts-club__eb,
.is-hot .tms__top span,
.is-hot .hpc__hl span {
	color: #fff;
	opacity: 1;
}

.l3s__cond.is-on .l3s__cc,
.l4t__tab.is-on .l4t__tc,
.l6tile.is-on .l6tile__c {
	background: rgba(0, 0, 0, .2);
}

.pd-ft__n {
	opacity: 1;
}

/* dimmed cards keep their text at 4.5:1: only the photo fades */
.g2-card.is-out,
.g2-row.is-out,
.p2-ki__lab {
	opacity: 1;
}

.g2-card.is-out .g2-card__ph,
.g2-row.is-out .g2-row__ph,
.p2-ki:not(.is-on) .p2-ki__img {
	opacity: .55;
}

.l3c__full s,
.l2c__full s,
.ts-seg__n,
.ts-chip__n {
	opacity: 1;
}

.av-ok {
	background: #177246;
}

/* links inside running text are underlined */
.wp-block-paragraph a:not([class]),
.avava-prose p a:not([class]) {
	text-decoration: underline;
	text-underline-offset: .15em;
}

/* the quiz card is drawn in the opposite scheme (ink background): its accent and its small print */
.quiz {
	--acc-text: var(--acc-on-dark);
}

[data-theme="dark"] .quiz {
	--acc-text: var(--acc-on-light);
}

.bt__n {
	opacity: 1;
}

/* white chips keep the dark accent in both schemes */
.pd-ft__chip.is-on,
.p2-bf__chip.is-on,
.fres .nobr,
.fres__go {
	color: var(--acc-on-light);
}

.quiz__head,
.js-quiz-out {
	color: rgb(from var(--on-ink) r g b / .8);
}

/* dark service and offer panels */
.svx {
	--acc-text: var(--acc-on-dark);
	--ok-text: #34b277;
}

/* small print on accent fills: plain white, at full strength (the same as the buttons' labels) */
.is-hot .nfd__meta,
.hpc.is-hot .hpc__short,
.pd-ft__k,
.is-hot .hpc__help span,
.bkf__svc .bkf__svcm,
.is-hot .nfd__meta span,
.is-hot .nfd__sub,
.is-hot .nfd__n,
.lrq__gs,
.lsc__est {
	color: #fff;
	opacity: 1;
}

/* the booking stamp is a faint picture: its words are drawn from data-t */
.tkt__stamp [data-t]::before {
	content: attr(data-t);
}

.hpc__fact,
.pd-ft__n {
	background: rgba(0, 0, 0, .18);
}

/* small print dimmed with opacity in the design: full strength, its own colour */
.htile__q,
.lsc__cn,
.fcar__p,
.hpc__vl {
	opacity: 1;
}

.cpt__sv {
	color: var(--mute);
}

/* outlined numbers are drawn at 3:1 like any large text */
.hrail__n,
.hrow__n {
	-webkit-text-stroke-color: var(--mute);
}

.l3s__big {
	color: transparent;
}

.hct__band .hct__st,
.hct__band .hct__now span,
.hct__band .hct__eb {
	color: #9aa0aa;
}

/* the hidden fine print is blurred until it is revealed, at full colour */
.fdl__ln.is-hidden {
	opacity: 1;
}

/* Product page on phones: the review count goes under the big score instead of off the screen */
@media (max-width: 767px) {
	.pd-rvband__score {
		flex-wrap: wrap;
		row-gap: 6px;
	}

	.pd-rvband__meta {
		flex-basis: 100%;
	}
}

/* Footer without the companion plugin: latest stories in place of the inventory count */
.ft .ft__posts {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	line-height: 1.45;
}
.ft .ft__posts li + li {
	margin-top: 8px;
}

/* Compare: the tray is drawn in the opposite scheme (ink background), like the quiz card; the
   chip's small green print a touch darker on its light tint */
.lcmp {
	--acc-text: var(--acc-on-dark);
}

[data-theme="dark"] .lcmp {
	--acc-text: var(--acc-on-light);
}

:root:not([data-theme="dark"]) .cqchip {
	color: hsl(from var(--cq-ok) h s calc(l * .9));
}

/* Compare: two to four slots — a car is added from the bar ("+ Add a car", drawn like the rows
   switch) and removed from its card, next to "View car" */
.cqbar__l {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: calc(var(--u) * 14);
}

.cqadd {
	position: relative;
	display: block;
}

.cqadd__s {
	height: calc(var(--u) * 58);
	padding: 0 calc(var(--u) * 26);
	border: .5px dashed var(--line2);
	border-radius: calc(var(--u) * 29);
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-size: max(12px, calc(var(--u) * 13));
	text-transform: uppercase;
	letter-spacing: calc(var(--u) * 2.08);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.cqadd__s:hover,
.cqadd__s:focus-visible {
	border-color: var(--acc);
	border-style: solid;
	outline: 0;
}

.cqcard__acts {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: calc(var(--u) * 14);
}

.cqcard__rm {
	padding: 0;
	border: 0;
	background: none;
	color: var(--mute);
	display: inline-flex;
	gap: calc(var(--u) * 8);
	font: inherit;
	font-size: max(12px, calc(var(--u) * 14));
	text-transform: uppercase;
	letter-spacing: calc(var(--u) * 1.68);
	cursor: pointer;
}

.cqcard__rm:hover,
.cqcard__rm:focus-visible {
	color: var(--acc-text);
}

@media (max-width: 767px) {
	.cqbar__l,
	.cqadd,
	.cqadd__s {
		width: 100%;
	}
}

/* Compare (companion plugin): the catalogue's photos sit a little low in the card, as the
   design's own crops do */
.cqcard__img {
	object-position: center 60%;
}

/* Terms · What changed: the track and the accent line up to the picked version (drawn here, the
   script sets --tm-ver) */
.tmc__line::before,
.tmc__line::after {
	content: "";
	position: absolute;
	left: 0;
	pointer-events: none;
}
.tmc__line::before {
	right: 0;
	top: calc(var(--u) * 44);
	height: 1px;
	background: var(--line2);
}
.tmc__line::after {
	top: calc(var(--u) * 43);
	height: 3px;
	width: var(--tmc-pos, 100%);
	background: var(--acc);
	transition: width .4s;
}
.tmc__v[role="button"] {
	cursor: pointer;
}
@media (max-width: 1199px) {
	.tmc__line::before,
	.tmc__line::after {
		display: none;
	}
}

/* Journal post: the post's own content (Post Content block) sits in the article's column as the
   design's pieces, without a box or the block layout's gaps of its own */
.bpx__body,
.bpx .bpx__flow {
	display: contents;
}
:where(.bpx .bpx__flow) > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* Global Styles: the palette's colours are the design's in the light scheme (the dark scheme keeps
   its own, made for the night) */
:root:not([data-theme="dark"]) {
	--ink: var(--wp--preset--color--ink, #111418);
	--body: var(--wp--preset--color--body, #5f6671);
	--bg: var(--wp--preset--color--background, #f7f8fa);
	--surf: var(--wp--preset--color--surface, #fff);
}

/* The design's photos as Image blocks: the figure takes the box the paragraph had, the picture
   fills it as the design's image classes did */
figure.why__photo,
.story__pano > figure,
.story__photo > figure,
.step__photo > figure {
	margin: 0;
}
.why__photo--img > img,
.story__pano > figure,
.story__photo > figure,
.step__photo > figure {
	position: absolute;
	inset: 0;
}
.why__photo--img > img,
.story__pano > figure > img,
.story__photo > figure > img,
.step__photo > figure > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.story__photo--top > figure > img {
	object-position: 50% 20%;
}
.step__photo > figure > img {
	object-position: left top;
}

/* The design's gaps are Spacer blocks with the design's height; where the design changes a gap
   on smaller screens, its own value wins over the Spacer's */
@media (max-width: 1199px) {
	.wp-block-spacer.l7gap {
		height: 24px !important;
	}

	.wp-block-spacer.s4gap,
	.wp-block-spacer.upgap {
		height: 20px !important;
	}
}

/* Breadcrumbs: a long title (a post's) stays on one line and ends with an ellipsis */
.crumbs ol {
	flex-wrap: nowrap;
	min-width: 0;
}
.crumbs li:last-child {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* the page facts sit on the same line, at its right end: the trail stops before them */
@media (min-width: 1200px) {
	.crumbs ol {
		max-width: 55%;
	}
}

/* Large accent text (from 24px, or 18.7px bold) keeps the brand accent itself: it passes AA for
   large text as it is. Found on every page of the demo, both schemes, at 1440 and 390 px. */
.adns__h2 .acc,
.bkf__h2 .acc,
.bpx__t .acc,
.ck-title .acc,
.cm__w .acc,
.fin__h2 .acc,
.g2-res__t .acc,
.h2 .acc,
.hct__h2 .acc,
.hero__acc,
.hgd__h2 .acc,
.how2__h2 .acc,
.hsr__h2 .acc,
.lsg-band__h .acc,
.lsg-h__t .acc,
.lsg-info__h1 .acc,
.lsg-mo__v,
.lsg-price__big,
.lsg-q__mk,
.lsg-score__n,
.lst-fin__v,
.lst-h1 .acc,
.lst-pcard__v,
.lst-score__n,
.lsv-det__n,
.lsv-fin__v,
.lsv-hero__h1 .acc,
.lsv-tl__y,
.lsw-drive__t .acc,
.lsw-filmhead__t .acc,
.lsw-inside__t .acc,
.lsw-insp__n,
.lsw-power__n,
.lsw-sum__mv,
.lsw-yours__t .acc,
.lsx-fin__v,
.lsx-h1 .acc,
.lsx-price__v,
.lsx-run__v,
.lsy-back__n,
.lsy-fin__v,
.lsy-hero__h1 .acc,
.lsy-more__t .acc,
.lsy-q__t .acc,
.p2-kit__t .acc,
.p2-ks__v,
.p2-price__v,
.p2-title .acc,
.pd-dh__hl .acc,
.pd-rv__mark,
.pd-rvband__big,
.pd-rvband__t .acc,
.pd-title__h .acc,
.pd-wr__dt .acc,
.pd-wr__t .acc,
.phead__h1 .acc,
.prom__big,
.quiz__t .acc,
.shp-drawer__t .acc,
.story__cap,
.story__h2 .acc,
.story__qm,
.svx__price,
.team__qm,
.tmq__h2 .acc,
.tmt__h2 .acc,
.ts-brand__mark,
.ts-brand__t .acc,
.ts-score__v,
.ts-sl__t .acc,
.uphd__t .acc {
	color: var(--acc);
}
@media (min-width: 768px) {
	.lrq__h2 .acc,
	.lsx-card__l {
		color: var(--acc);
	}
}
@media (max-width: 767px) {
	.lsw-mbar__mo,
	.lsx-mbar__mo,
	.lsg-stk__mo,
	.lst-bar__mo,
	.p2-ym__t .acc,
	.visit__h2 .acc {
		color: var(--acc);
	}
}

/* Small accent text on accent-tinted grounds (chips, tags, the current contents row) */
.bptoc.is-on,
.bptoc.is-on .bptoc__n,
.cmr__staff,
.pd-oem,
.upside__out,
.lsx-hot,
.lsv-pt__sev,
.lx-deal {
	color: hsl(from var(--acc) h s calc(l * .8));
}
[data-theme="dark"] .bptoc.is-on,
[data-theme="dark"] .bptoc.is-on .bptoc__n,
[data-theme="dark"] .cmr__staff,
[data-theme="dark"] .pd-oem,
[data-theme="dark"] .upside__out,
[data-theme="dark"] .lsx-hot,
[data-theme="dark"] .lx-deal,
[data-theme="dark"] .lsv-pt__sev {
	color: hsl(from var(--acc) h s calc(l * 1.3));
}
/* the small eyebrow inside a large heading stays small text */
.adns__eb .acc {
	color: var(--acc-text);
}

/* Lists written in the editor (a List block without a design class) keep their markers and
   indent; the design's own lists carry classes and stay bare */
:is(ul, ol)[class="wp-block-list"] {
	padding-left: 1.4em;
	margin-block: 0 1em;
}

ul[class="wp-block-list"] {
	list-style: disc;
}

ol[class="wp-block-list"] {
	list-style: decimal;
}

:is(ul, ol)[class="wp-block-list"] :is(ul, ol)[class="wp-block-list"] {
	margin-block: .25em 0;
}

ul[class="wp-block-list"] ul[class="wp-block-list"] {
	list-style: circle;
}

:is(ul, ol)[class="wp-block-list"] > li {
	display: list-item;
	margin-top: .3em;
}

:is(ul, ol)[class="wp-block-list"] > li::marker {
	color: var(--acc-text);
}

/* the Gallery block keeps a gap between its images (the theme sets no block gap) */
.wp-block-gallery.has-nested-images {
	--wp--style--gallery-gap-default: 16px;
	gap: 16px;
}

/* Service booking: the name and phone, side by side under the car field's line */
.bkf__whorow {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: calc(var(--u) * 32);
}

@media (max-width: 767px) {
	.bkf__whorow {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}

/* No logo yet (and no demo): the site's name stands in the logo's place, and in the preloader */
.avava-logo-name {
	display: inline-block;
	color: var(--ink);
	font-size: 20px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.pre__name {
	color: var(--ink);
	font-size: clamp(22px, 3vw, 34px);
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.pre__img {
	display: block;
	width: auto;
	max-width: min(280px, 64vw);
	max-height: 96px;
}

/* Car search: a field reached with the keyboard is outlined, not only its label tinted */
.search__f:has(.search__sel:focus-visible) {
	outline: 2px solid var(--acc);
	outline-offset: 2px;
	border-radius: 6px;
}

.search__sel:focus-visible {
	outline: none;
}

/* Journal on core blocks: the core blocks' own wrappers step aside so the design's rules (above,
   and the copies in the generated part below) shape them; the numbers count the list's stories. */
.blfeed .wp-block-post-template,
.blpopsq .wp-block-post-template,
.blcatsq .wp-block-term-template {
	margin: 0;
	padding: 0;
	list-style: none;
}

.blfeed .wp-block-post-template {
	counter-reset: blp;
}

.blfeed .wp-block-post {
	counter-increment: blp;
}

.blp__rail::before,
.blp__capn::before {
	content: counter(blp, decimal-leading-zero);
}

.blp__sv a,
.blpop__m a,
.bpa__fc a {
	color: inherit;
	text-decoration: none;
}

.blp__sv a:hover,
.blpop__m a:hover {
	text-decoration: underline;
	text-underline-offset: .15em;
}

.blp__sv--tags a::before,
.bltags .tag-cloud-link::before {
	content: "#";
}

.blp__sv--tags .wp-block-post-terms__separator {
	white-space: pre;
}

.wp-block-post-featured-image.blp__cover {
	margin: 0;
}

.blp__cover > a {
	display: block;
	position: relative;
	height: 100%;
	color: inherit;
}

.blp__t a::after {
	content: ".";
	color: var(--acc);
}

.blp__x .wp-block-post-excerpt__excerpt,
.blp__x .wp-block-post-excerpt__more-text {
	margin: 0;
}

.wp-block-read-more.blp__more {
	text-decoration: none;
}

.blp__more::after {
	content: "→";
}

/* the side column's search: the label and the field on one line, no box of its own */
.blsearch.wp-block-search {
	display: flex;
	align-items: center;
}

.blsearch .wp-block-search__inside-wrapper {
	flex: 1;
	padding: 0;
	border: 0;
	background: none;
}

.blsearch .wp-block-search__input {
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
}

.blsearch .wp-block-search__label {
	margin: 0;
	width: auto;
}

/* topics: the whole tile is the link; the count reads as the design's two digits */
.blcatsq .wp-block-term {
	position: relative;
}

.blcatsq .blcat__t {
	margin: 0;
}

.blcatsq .blcat__t a {
	color: inherit;
	text-decoration: none;
}

.blcatsq .blcat__t a::after {
	content: "";
	position: absolute;
	inset: 0;
}


.bltags.wp-block-tag-cloud {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
}

.bltags .tag-cloud-link {
	text-decoration: none;
}

/* most discussed: numbered, the title and its line of facts */
.blpopsq .wp-block-post-template {
	counter-reset: blpop;
}

.blpopsq .wp-block-post {
	counter-increment: blpop;
}

.blpopsq .wp-block-post::before {
	content: counter(blpop, decimal-leading-zero);
}

.blpopsq .blpop__t {
	margin: 0;
	font: inherit;
}

.blpopsq .blpop__t a {
	color: inherit;
	text-decoration: none;
}

.blpop__m {
	display: flex;
	gap: .5em;
}

.blarcs.wp-block-archives-list {
	margin: 0;
	padding: 0;
}

.blarcs a {
	text-decoration: none;
}

.blfols.wp-block-list {
	padding: 0;
	list-style: none;
}

.blfols a {
	text-decoration: none;
}

.blpg .wp-block-query-pagination {
	margin: 0;
	gap: inherit;
}

.blpg .page-numbers,
.blpg .wp-block-query-pagination-previous,
.blpg .wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.blpg .page-numbers.dots {
	border: 0;
}

/* the first page's "Prev", the last page's "Next": in place, inert (the design's disabled look below) */
.blpg .is-off {
	pointer-events: none;
}

.blpg .s4pg__k {
	margin: 0;
}

/* the story: without the plugin's rail and notes the text takes the middle and the right
   columns (the left one stays empty, as under the rail) */
.bpa__cols:not(:has(.bprail)) > .bpx {
	grid-column: 2 / -1;
}

@media (max-width: 1199px) {
	.bpa__cols:not(:has(.bprail)) > .bpx {
		grid-column: 1 / -1;
	}
}

/* the story */
.wp-block-post-featured-image.bpa__hero {
	margin: 0;
}

.bpx__ey::before {
	content: "";
}

.bpx__ey a {
	color: inherit;
	text-decoration: none;
}

.bpx__t::after {
	content: ".";
	color: var(--acc);
}

.bpx__dek .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.bpx__pn .wp-block-post-navigation-link {
	position: relative;
}

.bpx__pn .wp-block-post-navigation-link a {
	color: inherit;
	text-decoration: none;
}

.bpx__pn .wp-block-post-navigation-link a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.bpa__fc .bpa__k,
.bpa__fc .bpa__v {
	margin: 0;
}

/* comments: the Comments block in the design's layout */
.cml,
.cml ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cml {
	counter-reset: cmc;
}

.cml > .comment {
	counter-increment: cmc;
}

.cml > .comment > .cmc__g::after {
	content: counter(cmc, decimal-leading-zero);
}

.cml > .comment:has(> ol) > .cmc__g::before {
	content: "";
}

/* a comment's replies sit under its text, in the text's column */
.cml > .comment > ol {
	grid-column: 2;
}

.cml ol ol {
	margin-top: calc(var(--u) * 10);
}

/* in a reply the team's mark is a plain word, as the design writes it */
.cml ol .cmc__role.is-staff {
	padding: 0;
	border: 0;
	background: none;
}

.cmc__g,
.cmc__h {
	display: flex;
}

.cmc__g {
	flex-direction: column;
	align-items: center;
}

.cmc__h {
	flex-wrap: wrap;
	align-items: baseline;
}

.cmc__t p,
.cmc__h > *,
.cm__sub,
.cm__rules {
	margin: 0;
}

.cmc__n a,
.cmc__reply a,
.cmc__edit a,
.cm__ago a {
	color: inherit;
	text-decoration: none;
}

.cmc__acts {
	display: flex;
	align-items: center;
}

.cmc__edit {
	font-size: max(12px, calc(var(--u) * 13));
	text-transform: uppercase;
	letter-spacing: calc(var(--u) * 2);
	color: var(--mute);
}

.cml img.cmav {
	border-radius: 50%;
}

/* the form: "You" and the text on one line, the rest under the text */
.cm__form .comment-respond {
	margin: 0;
}

.cmf p {
	margin: 0;
}

.cmf {
	display: flex;
	flex-direction: column;
	gap: calc(var(--u) * 18);
}

.cmf .cmf__line,
.cmf .logged-in-as,
.cmf .comment-form-cookies-consent {
	padding-left: calc(var(--u) * 82);
}

.cmf .logged-in-as,
.cmf .comment-form-cookies-consent {
	font-size: max(12px, calc(var(--u) * 14));
	color: var(--mute);
}

.cmf .logged-in-as a {
	color: inherit;
}

.cmf__who p {
	flex: 1 1 calc(var(--u) * 300);
}

.cmf__who .cmf__in {
	width: 100%;
}

.cmf__go {
	justify-content: flex-end;
}

.cmf.is-closed .cmf__line,
.cmf.is-closed .logged-in-as,
.cmf.is-closed .comment-form-cookies-consent {
	display: none;
}

.cmf__reply:empty {
	display: none;
}

.cmrole {
	cursor: pointer;
}

.cmrole:has(input:focus-visible) {
	outline: 2px solid var(--acc);
	outline-offset: 2px;
}

.cmpg {
	margin-top: calc(var(--u) * 30);
}

/* journal-core:start */
.blpg .wp-block-query-pagination-numbers {
	display: flex;
	gap: calc(var(--u) * 8);
}

.blpg .wp-block-query-pagination-previous,
.blpg .wp-block-query-pagination-next {
	height: calc(var(--u) * 60);
	padding: 0 calc(var(--u) * 24);
	border-radius: calc(var(--u) * 30);
	display: flex;
	align-items: center;
	gap: calc(var(--u) * 10);
	font-size: max(12px, calc(var(--u) * 13));
	text-transform: uppercase;
	letter-spacing: calc(var(--u) * 1.82);
}

.blpg .wp-block-query-pagination-previous {
	border: .5px solid var(--line2);
}

.blpg .wp-block-query-pagination-previous.is-off {
	opacity: .35;
	cursor: default;
}

.blpg .wp-block-query-pagination-next {
	background: var(--acc);
	color: #fff;
}

.blpg .wp-block-query-pagination-next.is-off {
	background: var(--sg-chip);
	color: var(--mute);
	cursor: default;
}

.blpg .page-numbers {
	width: calc(var(--u) * 60);
	height: calc(var(--u) * 60);
	border: .5px solid var(--line2);
	border-radius: 50%;
	font-size: max(12px, calc(var(--u) * 17));
	font-weight: 300;
}

.blpg .page-numbers[aria-current="page"] {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--pd-inv);
}

@media (max-width: 767px) {
	.blpg .wp-block-query-pagination-numbers {
		display: none;
	}
}

.blp__rail::before {
	font-family: var(--wp--preset--font-family--bbh-bartle, "BBH Bartle", Geist, sans-serif);
	font-size: max(12px, calc(var(--u) * 94));
	line-height: .85;
	color: transparent;
	-webkit-text-stroke: 1px var(--acc-text);
	transition: color .35s;
}

.blp:hover .blp__rail::before {
	color: var(--acc-text);
}

.blp__row .blp__dt {
	font-size: max(12px, calc(var(--u) * 11));
	text-transform: uppercase;
	letter-spacing: calc(var(--u) * 1.98);
	color: var(--mute);
}

.blp__cover img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transition: transform .9s var(--pd-ease);
}

.blp__cover img {
	object-fit: cover;
	object-position: 50% 62%;
}

.blp:hover .blp__cover img {
	transform: scale(1.04);
}

.blp__more::after {
	width: calc(var(--u) * 52);
	height: calc(var(--u) * 52);
	border-radius: 50%;
	background: var(--acc);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.blsearch .wp-block-search__label {
	font-family: var(--wp--preset--font-family--mono, ui-monospace, Menlo, monospace);
	font-size: max(12px, calc(var(--u) * 12));
	color: var(--acc-text);
}

.blsearch .wp-block-search__input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: none;
	background: transparent;
	font-size: max(12px, calc(var(--u) * 18));
	font-weight: 300;
}

.blsearch .wp-block-search__input::placeholder {
	color: var(--mute);
}

.blcatsq .wp-block-term-template,
.blpopsq .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
}

.blcatsq .wp-block-term-template {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.blcatsq .wp-block-term-template > li:nth-child(odd) {
	border-right: .5px solid var(--line2);
}

.blcatsq .wp-block-term {
	width: 100%;
	height: calc(var(--u) * 92);
	padding: calc(var(--u) * 16) calc(var(--u) * 20);
	border-bottom: .5px solid var(--line2);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	text-align: left;
	transition: background .2s;
}

.blcatsq .wp-block-term:hover,
.blcatsq .wp-block-term:is(.is-current, :has(a[aria-current])) {
	background: var(--surf);
}

.blcatsq .wp-block-term:is(.is-current, :has(a[aria-current])) {
	color: var(--acc-text);
}

.blcatsq .wp-block-term:is(.is-current, :has(a[aria-current])) .blcat__n {
	color: var(--acc-text);
}

.bltags .tag-cloud-link {
	height: calc(var(--u) * 36);
	padding: 0 calc(var(--u) * 14);
	border: .5px solid var(--line2);
	font-family: var(--wp--preset--font-family--mono, ui-monospace, Menlo, monospace);
	font-size: max(12px, calc(var(--u) * 13));
}

.bltags .tag-cloud-link:hover {
	border-color: var(--acc);
}

.bltags .tag-cloud-link[aria-pressed="true"] {
	border-color: var(--acc);
	background: var(--acc);
	color: #fff;
}

.blpopsq .wp-block-post {
	padding: calc(var(--u) * 16) calc(var(--u) * 22);
	border-bottom: .5px solid var(--sg-ln);
	display: grid;
	grid-template-columns: calc(var(--u) * 40) minmax(0, 1fr);
	gap: calc(var(--u) * 12);
}

.blpopsq .wp-block-post::before {
	font-family: var(--wp--preset--font-family--mono, ui-monospace, Menlo, monospace);
	font-size: max(12px, calc(var(--u) * 13));
	color: var(--acc-text);
}

.blarcs a {
	height: calc(var(--u) * 70);
	padding: 0 calc(var(--u) * 20);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: calc(var(--u) * 4);
}

.blarcs a {
	font-size: max(12px, calc(var(--u) * 15));
	font-weight: 300;
}

.blfols a {
	height: calc(var(--u) * 60);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--wp--preset--font-family--mono, ui-monospace, Menlo, monospace);
	font-size: max(12px, calc(var(--u) * 13));
}

@media (max-width: 1599px) {
	.blside .blpopsq .wp-block-post-template {
		display: none;
	}
}

@media (max-width: 1599px) {
	.blcatsq .wp-block-term-template {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 1599px) {
	.blcatsq .wp-block-term-template > li {
		border-right: .5px solid var(--line2);
	}
}

@media (max-width: 1599px) {
	.blcatsq .wp-block-term-template > li:nth-child(4n) {
		border-right: 0;
	}
}

@media (max-width: 767px) {
	.blcatsq .wp-block-term-template {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 767px) {
	.blcatsq .wp-block-term-template > li:nth-child(odd) {
		border-right: .5px solid var(--line2);
	}
}

@media (max-width: 767px) {
	.blcatsq .wp-block-term-template > li:nth-child(even) {
		border-right: 0;
	}
}

@media (max-width: 767px) {
	.blcatsq .wp-block-term {
		height: 72px;
		padding: 12px 16px;
	}
}

@media (max-width: 767px) {
	.blp__rail::before {
		font-size: 56px;
	}
}

.bpa__hero img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 62%;
}

.bpa__fc .bpa__k {
	font-size: max(12px, calc(var(--u) * 11));
	text-transform: uppercase;
	letter-spacing: calc(var(--u) * 1.98);
	color: var(--mute);
}

.bpa__fc .bpa__v {
	margin: 0;
	font-size: max(12px, calc(var(--u) * 19));
	font-weight: 300;
}

.bpx__ey::before {
	width: calc(var(--u) * 40);
	height: 1px;
	background: var(--acc);
}

.bpx__pn .post-navigation-link__label {
	font-family: var(--wp--preset--font-family--mono, ui-monospace, Menlo, monospace);
	font-size: max(12px, calc(var(--u) * 12));
	color: var(--acc-text);
}

.bpx__pn .wp-block-post-navigation-link a {
	font-size: max(12px, calc(var(--u) * 22));
	font-weight: 300;
	line-height: 1.3;
	transition: color .25s;
}

.bpx__pv:hover .bpx__pn .wp-block-post-navigation-link a,
.bpx__nx:hover .bpx__pn .wp-block-post-navigation-link a {
	color: var(--acc-text);
}

.cml ol .cmav {
	width: calc(var(--u) * 44);
	height: calc(var(--u) * 44);
	font-size: max(12px, calc(var(--u) * 13));
}

.cml .comment > ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cml > .comment {
	padding: calc(var(--u) * 38) 0;
	border-bottom: .5px solid var(--sg-ln);
	display: grid;
	grid-template-columns: calc(var(--u) * 70) minmax(0, 1fr);
	gap: calc(var(--u) * 24);
	transition: background .6s;
}

.cml > .comment.is-flash {
	background: var(--acc-a06);
}

.cml > .comment > .cmc__g::after {
	font-family: var(--wp--preset--font-family--mono, ui-monospace, Menlo, monospace);
	font-size: max(12px, calc(var(--u) * 12));
	color: var(--acc-text);
}

.cml > .comment:has(> ol) > .cmc__g::before {
	flex: 1;
	width: 1px;
	min-height: calc(var(--u) * 40);
	background: var(--line2);
}

.cml ol .cmc__h {
	margin: 0;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: calc(var(--u) * 4) calc(var(--u) * 14);
}

.cmc__reply .comment-reply-link {
	display: flex;
	align-items: center;
	gap: calc(var(--u) * 8);
	font-size: max(12px, calc(var(--u) * 14));
	text-transform: uppercase;
	letter-spacing: calc(var(--u) * 1.96);
	color: var(--mute);
}

.cml .comment > ol {
	margin-top: calc(var(--u) * 12);
	display: flex;
	flex-direction: column;
	gap: calc(var(--u) * 26);
}

.cml ol > .comment {
	padding: calc(var(--u) * 22) calc(var(--u) * 26);
	border-radius: calc(var(--u) * 22);
	background: var(--surf);
	display: grid;
	grid-template-columns: calc(var(--u) * 44) minmax(0, 1fr);
	gap: calc(var(--u) * 16);
}

.cml ol > .comment:has(.cmc__role.is-staff) {
	background: var(--acc-a08);
}

.cml ol .cmc__b {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: calc(var(--u) * 8);
}

.cml ol .cmc__n {
	font-size: max(12px, calc(var(--u) * 17));
}

.cml ol .cmc__role.is-staff {
	font-size: max(12px, calc(var(--u) * 11));
	text-transform: uppercase;
	letter-spacing: calc(var(--u) * 1.76);
	color: var(--acc-text);
}

.cml ol .cmc__t {
	margin: 0;
	font-size: max(12px, calc(var(--u) * 20));
	font-weight: 300;
	line-height: 1.6;
	color: var(--bp-body);
}

@media (max-width: 767px) {
	.cml > .comment {
		grid-template-columns: 44px minmax(0, 1fr);
		gap: 14px;
	}
}

@media (max-width: 767px) {
	.cml > .comment .cmav {
		width: 40px;
		height: 40px;
	}
}

@media (max-width: 767px) {
	.cml ol > .comment {
		padding: 16px;
		grid-template-columns: 36px minmax(0, 1fr);
		gap: 12px;
	}
}

@media (max-width: 767px) {
	.cml ol .cmav {
		width: 36px;
		height: 36px;
	}
}

@media (max-width: 767px) {
	.cml ol .cmc__t {
		font-size: 16px;
	}
}
/* journal-core:end */

/* Signed in, WordPress's admin bar sits above the page (32px, 46px on phones): the header, which
   the design places at the very top, starts under it */
.admin-bar .hd {
	top: var(--wp-admin--admin-bar--height, 32px);
}

/* A product without the design's option table lists its own facts in two columns. */
.pd-sp--one .pd-sp__row {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
}

/* A plain product (no fitment, gallery or model tiles): the story and the box fill the row,
   the specifications stand beside the shipping and returns tiles instead of leaving holes. */
@media (min-width: 1200px) {
	.pd-bento--plain .pd-dh {
		grid-column: span 9;
	}

	.pd-bento--plain .pd-sp,
	.p2-bento--plain .p2-sp {
		grid-row: span 2;
	}

	.pd-bento--plain .pd-sp {
		grid-column: span 8;
	}
}

/* The product's own photo sits on the right of the story tile, the text keeps the dark half. */
.pd-dh--text .pd-dh__img {
	left: auto;
	right: 0;
	width: 58%;
}

.pd-dh--text .pd-dh__shade {
	background: linear-gradient(90deg, var(--pd-night) 0%, var(--pd-night) 42%, rgba(14, 16, 19, .55) 52%, rgba(14, 16, 19, 0) 70%);
}

@media (min-width: 1200px) {
	.pd-bento--plain:not(:has(.pd-box)) .pd-dh {
		grid-column: span 12;
	}
}

@media (max-width: 767px) {
	.pd-dh--text .pd-dh__img {
		width: 100%;
		opacity: .35;
	}
}

/* Cart error on a page without the design's toast. */
.avava-cart-err {
	position: fixed;
	z-index: 1000;
	right: 16px;
	bottom: 16px;
	left: 16px;
	max-width: 480px;
	margin: 0 auto;
	padding: 14px 18px;
	border-radius: 12px;
	background: #111418;
	color: #f2f3f5;
	font-size: 15px;
}

/* Product archives (shop, categories, tags, brands, product search): the design's page head and
   its product cards over WooCommerce's product collection. */
.shp-arch .phead {
	height: auto;
	min-height: calc(var(--u) * 300);
	margin: 0 var(--gut);
}

.shp-arch .phead__txt {
	position: static;
	padding-top: calc(var(--u) * 120);
	padding-bottom: calc(var(--u) * 44);
}

.shp-arch .phead__h1 {
	margin: 0;
	overflow-wrap: anywhere;
}

.shp-arch .phead__intro {
	display: block;
	max-width: 60ch;
	margin-top: calc(var(--u) * 24);
	white-space: normal;
}

.shp-arch .phead__intro p {
	margin: 0;
}

.shp-arch__body {
	padding-bottom: calc(var(--u) * 120);
}

.shp-arch__bar {
	margin-bottom: calc(var(--u) * 30);
	gap: 12px 24px;
	font-size: max(12px, calc(var(--u) * 15));
	color: var(--mute);
}

.shp-arch__bar :where(p, form) {
	margin: 0;
}

.shp-arch__bar select {
	min-height: 40px;
	padding: 0 14px;
	border: .5px solid var(--line);
	border-radius: 20px;
	background: var(--surf);
	color: var(--ink);
	font: inherit;
}

.shp-arch__grid .wc-block-product-template {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: calc(var(--u) * 16);
	margin: 0;
	padding: 0;
	list-style: none;
}

.shp-arch__grid .wc-block-product {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	border-radius: calc(var(--u) * 28);
	background: var(--surf);
	overflow: hidden;
	transition: transform .3s;
}

.shp-arch__grid .wc-block-product:hover {
	transform: translateY(calc(var(--u) * -6));
}

.shp-arch__img {
	position: relative;
	margin: 0;
}

.shp-arch__img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.shp-arch__t {
	margin: 0;
	padding: calc(var(--u) * 22) calc(var(--u) * 24) 0;
	font-size: max(15px, calc(var(--u) * 21));
	font-weight: 300;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.shp-arch__t a {
	color: inherit;
	text-decoration: none;
}

.shp-arch__foot {
	margin-top: auto;
	padding: calc(var(--u) * 16) calc(var(--u) * 24) calc(var(--u) * 24);
	gap: 10px;
	align-items: center;
}

.shp-arch__p {
	margin: 0;
	font-size: max(14px, calc(var(--u) * 20));
}

.shp-arch__add {
	margin: 0;
}

.shp-arch__add .wp-block-button__link,
.shp-arch__add .button {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: 20px;
	background: var(--acc);
	color: #fff;
	font: inherit;
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	white-space: nowrap;
	text-decoration: none;
}

.shp-arch .wc-block-components-product-sale-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 4px 10px;
	border: 0;
	border-radius: 12px;
	background: var(--acc);
	color: #fff;
	font-size: 12px;
	text-transform: uppercase;
}

.shp-arch__pg {
	margin-top: calc(var(--u) * 50);
	gap: 8px;
}

.shp-arch__none {
	padding: calc(var(--u) * 60) 0;
	color: var(--mute);
}

@media (max-width: 1199px) {
	.shp-arch__grid .wc-block-product-template {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.shp-arch__grid .wc-block-product-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.shp-arch__t {
		padding: 14px 14px 0;
	}

	.shp-arch__foot {
		flex-wrap: wrap;
		padding: 10px 14px 14px;
	}
}

/* A block of the companion plugin while it is off (shown to admins only). */
.avava-missing {
	margin: 24px var(--gut, 16px);
	padding: 16px 20px;
	border: 1px dashed var(--line);
	border-radius: 12px;
	color: var(--mute);
}

/* A word longer than its line (a long URL, a code name) wraps instead of pushing the page sideways. */
.avava-main,
.avava-ft {
	overflow-wrap: break-word;
}

/* Breadcrumbs: a long category or title in the middle of the trail ends with an ellipsis too. */
.crumbs.wp-block-breadcrumbs li {
	min-width: 0;
}

.crumbs.wp-block-breadcrumbs li:first-child {
	flex-shrink: 0;
}

.crumbs.wp-block-breadcrumbs li > a {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* A two- or three-digit comment count: the word goes under the number on a phone. */
.cm__t {
	flex-wrap: wrap;
}

/* The map's attribution links are told apart from their text by an underline, not by colour alone. */
.leaflet-container .leaflet-control-attribution a {
	text-decoration: underline;
}

/* The comment field stays open while the form is in use or holds text: otherwise it shrinks as
   focus moves to a role button and the row jumps under the pointer (the first click is lost). */
.cmf:focus-within .cmf__ta,
.cmf__ta:not(:placeholder-shown) {
	height: calc(var(--u) * 140);
}

/* A rail arrow with nothing more to show that way. */
.navbtns .circ:disabled {
	opacity: .35;
	cursor: default;
}

/* A shop block without WooCommerce: the note only administrators see. */
.avava-car-needs {
	margin: 0 0 16px;
	padding: 12px 16px;
	border: 1px dashed currentColor;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.5;
}

/* Maps that wait for the visitor: the drawn map shows, the button asks for the live tiles. */
.map-go {
	position: absolute;
	left: 50%;
	top: 12px;
	z-index: 1000;
	max-width: calc(100% - 24px);
	transform: translateX(-50%);
}

.map-go__btn {
	display: block;
	max-width: 100%;
	padding: 8px 16px;
	overflow: hidden;
	border: 0;
	border-radius: 999px;
	background: var(--ink, #111418);
	color: var(--bg, #fff);
	font: inherit;
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-overflow: ellipsis;
	white-space: nowrap;
	cursor: pointer;
}

.map-go__btn:focus-visible {
	outline: 2px solid var(--acc, #d3450e);
	outline-offset: 3px;
}

.map-go__note {
	letter-spacing: 0;
	text-transform: none;
	opacity: .8;
}

/* A map block placed on its own, outside the design's map frame: it keeps a box of its own. */
.wp-block-avava-car-showroom-map:not(.visit__map > *),
.wp-block-avava-car-contact-map:not(.cnv__map > *) {
	position: relative;
	inset: auto;
	width: 100%;
	aspect-ratio: 16 / 9;
	min-height: 280px;
	max-height: 70vh;
	border-radius: 12px;
	overflow: hidden;
	background: var(--surf2, #e9ebee);
}

/* Block styles (inc/setup.php): the design's outlined accent button, its dark pill button and
   its card panel, for core Button and Group blocks. */
.wp-block-button.is-style-avava-line > .wp-block-button__link {
	border: 2px solid var(--acc);
	border-radius: 999px;
	background: transparent;
	color: var(--acc-text, var(--acc));
}

.wp-block-button.is-style-avava-line > .wp-block-button__link:hover {
	background: var(--acc-s3);
}

.wp-block-button.is-style-avava-ink > .wp-block-button__link {
	border-radius: 999px;
	background: var(--ink);
	color: var(--on-ink);
}

.wp-block-button.is-style-avava-ink > .wp-block-button__link:hover {
	background: var(--acc-d);
	color: #fff;
}

.wp-block-group.is-style-avava-card {
	padding: clamp(20px, calc(var(--u) * 40), 40px);
	border: 1px solid var(--line);
	border-radius: clamp(14px, calc(var(--u) * 24), 24px);
	background: var(--surf);
}
