/* BUILD 10: use the actual supplied 2×4 eight-stud artwork, recoloured red.
   The left-hand brick tile is joined to the yellow ribbon.  Both use the
   parent's skew so their top/bottom edges are exactly flush and horizontal. */
.rbh-ribbon {
  --rbh-brick-w: 56px;
  margin-left: var(--rbh-brick-w) !important;
}
.rbh-ribbon::before {
  content: "";
  position: absolute;
  display: block;
  left: calc(-1 * var(--rbh-brick-w) + 1px) !important;
  top: 0 !important;
  bottom: 0 !important;
  width: var(--rbh-brick-w) !important;
  height: auto !important;
  background: #ed172b url('/assets/ribbon-brick-horizontal.png') center / 100% 100% no-repeat !important;
  border: 0 !important;
  border-right: 3px solid #050505 !important;
  transform: none !important;
  transform-origin: initial !important;
  box-sizing: border-box;
}

.rbh-feature-copy .rbh-ribbon,
.rbh-rove-copy .rbh-ribbon { --rbh-brick-w: 44px; }
.rbh-heading-line .rbh-ribbon,
.rbh-clients .rbh-ribbon { --rbh-brick-w: 58px; }

@media (max-width: 640px) {
  .rbh-ribbon { --rbh-brick-w: 36px; }
  .rbh-heading-line .rbh-ribbon,
  .rbh-clients .rbh-ribbon { --rbh-brick-w: 44px; }
  .rbh-feature-copy .rbh-ribbon,
  .rbh-rove-copy .rbh-ribbon { --rbh-brick-w: 32px; }
}

/* Override Build 09's fixed-size diamond pseudo-elements in every heading size.
   Inset zero forces the tile's edges to match the yellow banner precisely,
   including the two-line Previous Clients ribbon. */
.rbh-page .rbh-ribbon::before {
  inset-block: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  height: auto !important;
  width: var(--rbh-brick-w) !important;
  left: calc(-1 * var(--rbh-brick-w) + 1px) !important;
}
@media (max-width: 640px) {
  /* Allow the two feature titles to remain single-line after adding the tile. */
  .rbh-feature-copy .rbh-ribbon {
    --rbh-brick-w: 29px;
    font-size: clamp(11.3px,3.1vw,15px) !important;
    white-space: nowrap !important;
    padding-right: 4px !important;
    padding-left: 5px !important;
  }
}
