/* Shared SpinZ CZ identity. External SVGs include outlined Poppins lettering. */
img.spinz-brand-logo {
  display: block;
  flex: none;
  width: 160px;
  height: 40px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
img.spinz-brand-mark {
  display: block;
  flex: none;
  width: 40px;
  height: 40px;
  object-fit: contain;
}
@media (max-width: 760px) {
  img.spinz-brand-logo { width: 130px; height: 32px; }
  img.spinz-brand-mark { width: 32px; height: 32px; }
}

/* ---------- the Tools menu in the top bar (round 37) ----------
   It lives here because this is the one stylesheet every page on the site loads, and the menu has to look the
   same on all of them. Self contained on purpose: it leans on nothing from the page it lands in. */
.tb-tools { position: relative; display: flex; align-items: center; }
.tb-tools .tb-tools-btn {
  display: inline-flex; align-items: center; gap: 5px;
  border: 0; background: none; color: inherit; cursor: pointer; padding: 0;
  /* same type as the links beside it, whatever the host page does to buttons */
  font: 500 14px/1.5 'Poppins', Arial, sans-serif; letter-spacing: 0; text-transform: none;
}
.tb-tools-btn svg {
  width: 15px; height: 15px; fill: none; stroke: currentColor;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s cubic-bezier(.2,.75,.2,1);
}
.tb-tools-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.tb-tools-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, -6px);
  min-width: 280px; padding: 8px; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(20,16,25,.97);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0,0,0,.67);
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; z-index: 40;
}
.tb-tools-btn[aria-expanded="true"] + .tb-tools-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.tb-nav .tb-tools-menu a, .tb-tools-menu a { display: block; padding: 11px 13px; border-radius: 12px; text-decoration: none; text-align: left; min-height: 0; }
.tb-tools-menu a b { display: block; font-size: 14.5px; font-weight: 600; color: #f7f2f8; }
.tb-tools-menu a span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: #a9a2b0; }
.tb-tools-menu a:hover, .tb-tools-menu a.active { background: rgba(255,255,255,.05); }
/* the top bar underlines the page you are on; inside the menu that reads as a stray line */
.tb-tools-menu a:after, .tb-tools-menu a:before { content: none; display: none; }
/* On a phone the panel is already open, so there is nothing to expand: Tools stops being a button and
   becomes the label above its two rows, and the rows sit indented under a soft rail so they read as its
   children rather than as two more items in the main list. */
@media (max-width: 960px) {
  .tb-tools { display: block; width: 100%; margin: 10px 0 2px; }
  .tb-tools .tb-tools-btn {
    width: 100%; justify-content: flex-start; min-height: 0; padding: 0 16px 7px;
    font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: #8d8695; pointer-events: none; cursor: default;
  }
  .tb-tools-btn svg { display: none; }
  .tb-tools-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    min-width: 0; width: auto; margin: 0 0 4px 16px; padding: 0 0 0 13px;
    border: 0; border-left: 1px solid rgba(255,255,255,.1); border-radius: 0;
    background: none; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .tb-nav .tb-tools-menu a, .tb-tools-menu a { padding: 9px 12px; border-radius: 9px; }
  .tb-tools-menu a b { font-size: 16px; }
  .tb-tools-menu a span { font-size: 13px; }
}
