/* Contributor Land overrides for the Bootswatch Brite theme. Loaded after Brite in layout.erb. */

/* Logged-in account bar: keep only the bottom border */
.navbar.account-bar {
  border-top: 0;
  border-left: 0;
  border-right: 0;
}

/* Ribbon rack (member pages): 3 ribbons per row with a 2px seam. Rows fill from the bottom so a short row
   sits on top, centred, like a worn rack. Markup lists ribbons lowest precedence first; with row-reverse
   + wrap-reverse the highest-precedence ribbon lands top-left (the wearer's right). */
.ribbon-rack {
  --ribbon-width: 99px;
  --ribbon-height: 27px;
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap-reverse;
  justify-content: center;
  gap: 2px;
  max-width: calc(var(--ribbon-width) * 3 + 4px);
  margin: 0 auto;
}

.ribbon-rack .ribbon {
  display: block;
  width: var(--ribbon-width);
  height: var(--ribbon-height);
  object-fit: fill;
}
