/* The guild site's tools page (app.html): only what that page adds to the
   tools' own stylesheets (css/*.css): the admin's news line, and hiding the
   Leveling tab when the admin turns it off (js/site/site.js). Colours come
   from css/tokens.css; the contrast test reads that file's :root, so nothing
   here sets text or surface colours of its own. */

/* The site bar's tabs are flex items below 960 px: [hidden] needs the help. */
.sitebar-tabs > li[hidden] {
  display: none;
}

/* Nine tabs don't fit a phone (the live page's seven do), so the strip scrolls
   sideways. Below 960 px the long labels are visually hidden with
   position: absolute; without a positioned strip they would belong to the
   sticky site bar and stick out past the strip's scroll box, widening the page. */
.sitebar-tabs {
  position: relative;
}

.announce-tag {
  flex: none;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
  color: var(--text-on-gold);
  background: var(--surface-gold);
}

/* The admin's news line: a pill under the sub tabs, as on the Guild page. */
.announce {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: fit-content;
  max-width: calc(100% - 2 * var(--gutter));
  margin: var(--sp-3) auto 0;
  padding: var(--sp-1) var(--sp-4) var(--sp-1) var(--sp-1);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--text);
  background: var(--stone-950);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
}

.announce-tag {
  padding: 0.25rem 0.7rem;
}

.announce[hidden] {
  display: none;
}
