/* THE EXAMPLE WEBSITES' OWN BAR (templates/examples/_bar.html).

   Loaded only on an example, never on a customer's site. It is Sitework's
   bar, in Sitework's look -- the dark ground and the pink of the shop
   front -- so it can never be taken for part of the made-up business
   underneath it. Every rule is under .xb; nothing here reaches the site. */

.xb {
  position: relative;
  z-index: 40;                       /* over the site's sticky header */
  background: #0f1216;
  color: #e9eef5;
  border-bottom: 2px solid #f07aa8;
  font-family: Archivo, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
}
.xb-in {
  display: flex;
  align-items: center;
  gap: 10px 16px;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
  padding: 9px clamp(14px, 3vw, 28px);
}
.xb p { margin: 0; }
.xb a { color: inherit; }

.xb-chip {
  flex: none;
  background: #f07aa8;
  color: #1d0a13 !important;
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 5px 10px 4px;
  border-radius: 999px;
}
.xb-chip:focus-visible,
.xb a:focus-visible,
.xb summary:focus-visible { outline: 2px solid #f07aa8; outline-offset: 3px; }

.xb-plan { flex: none; }
.xb-plan b { font-weight: 800; }
.xb-plan span { color: #c9d3df; margin-left: 4px; }
.xb-plan em {
  font-style: normal;
  font-weight: 700;
  color: #7ee2a8;
  margin-left: 6px;
}
.xb-say { color: #aab6c4; }

.xb-more { position: relative; }
.xb-more summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: #f7b3cf;
  white-space: nowrap;
}
.xb-more summary::-webkit-details-marker { display: none; }
.xb-more summary::after { content: " \25BE"; }
.xb-more[open] summary::after { content: " \25B4"; }
.xb-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: min(360px, 86vw);
  background: #171b21;
  border: 2px solid #333c48;
  border-radius: 14px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .55);
  padding: 14px 16px 12px;
}
.xb-panel-say { color: #e9eef5; font-weight: 600; margin-bottom: 8px !important; }
.xb-panel ul { margin: 0; padding-left: 18px; color: #c9d3df; }
.xb-panel li { margin: 5px 0; }

.xb-go {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.xb-all { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.xb-btn {
  background: #f07aa8;
  color: #1d0a13 !important;
  font-weight: 800;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.xb-btn:hover { background: #f59bbf; }

/* The sentence goes first when room runs out: the chip and the plan say
   the same thing in fewer words. */
@media (max-width: 1320px) {
  .xb-say { display: none; }
}
@media (max-width: 620px) {
  .xb-in { gap: 8px 12px; }
  /* Two rows on a phone: what it is, then what to do. "All examples" is
     the chip's job there -- it goes to the same page. */
  .xb-all { display: none; }
  .xb-btn { padding: 6px 12px; font-size: 13px; }
  /* On a phone the list drops below the whole bar, the width of the
     screen, rather than hanging off the edge from a word in the middle. */
  .xb-more { position: static; }
  .xb-panel { left: 12px; right: 12px; width: auto; top: calc(100% + 8px); }
}
/* On the narrowest phones the free days are said once, on the button. */
@media (max-width: 440px) {
  .xb-plan em { display: none; }
}
@media print { .xb { display: none; } }
