/* sx-brand.css — styles for the StrmrX brand layer (sx-brand.js).
   SX_BRAND_VERSION 1.0.0 (canonical: strmrx-core/web; vendor a copy).
   Self-contained with token fallbacks so it works in any app, on-core or not.
   Overlay/OBS pages never load this. Pairs with sx-brand.js. */

/* The branded X glyph standing in for the letter X in wordmarks (SX.brandX).
   currentColor keeps each surface's own hue (app accent in the header wordmark,
   ember on the by-credit and footer). */
.sx-xg { height: .82em; width: auto; display: inline-block; vertical-align: -.05em; margin-left: .03em; }

/* "by StrmrX" header credit (SX.byStrmrX): under the app wordmark, X always ember. */
.sx-brand-stack { display: flex; flex-direction: column; gap: 0; line-height: 1; }
.sx-bycredit {
  font-size: 10.5px; font-weight: 800; letter-spacing: .05em; margin-top: 1px;
  color: var(--sx-muted, #9a93a8); text-decoration: none; white-space: nowrap;
  transition: color .15s ease;
}
.sx-bycredit b { color: #ff7828; }
.sx-bycredit:hover { color: var(--sx-text, #eee); }
@media (max-width: 640px) { .sx-bycredit { padding-left: 0 !important; } }

/* StrmrX family footer (SX.familyFooter): circle mark + blurb + Explore/Tiers.
   The brand here is StrmrX itself, so the mark is the circle disc and the
   wordmark X is brand orange, never the app accent. */
.sx-famfoot {
  margin-top: 56px; border-top: 1px solid var(--sx-border, rgba(255,255,255,.09));
  background: color-mix(in srgb, var(--sx-bg, #0e0e13) 55%, transparent);
}
.sx-famfoot-inner {
  max-width: var(--sx-page-max, 1100px); margin: 0 auto; padding: 26px 22px 30px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.sx-famfoot-brand {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  text-decoration: none; transition: filter .15s ease;
}
.sx-famfoot-brand:hover { filter: brightness(1.12); }
.sx-famfoot-brand .sx-mark { display: block; filter: drop-shadow(0 0 10px rgba(255,120,40,.32)); }
.sx-famfoot-word { font-weight: 800; font-size: 18px; letter-spacing: .2px; color: var(--sx-text, #eee); }
.sx-famfoot-word b { color: #ff7828; font-style: italic; }
.sx-famfoot p { flex: 1 1 260px; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--sx-muted, #9a93a8); }
.sx-famfoot-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sx-famfoot .sx-btn { white-space: nowrap; }
/* Zero-specificity fallback so the footer buttons look right in apps with NO
   core.css. :where() keeps specificity 0, so any real .sx-btn rule always wins. */
:where(.sx-famfoot .sx-btn) {
  display: inline-block; padding: 9px 16px; border-radius: var(--sx-radius, 12px);
  font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1px solid var(--sx-border, rgba(255,255,255,.14)); line-height: 1.1;
  color: var(--sx-text, #eee); background: transparent; transition: filter .15s ease, background .15s ease;
}
:where(.sx-famfoot .sx-btn:hover) { filter: brightness(1.1); }
:where(.sx-famfoot .sx-btn-primary) {
  border-color: transparent; color: #14100d;
  background: var(--sx-accent, #ff7828);
}
@media (max-width: 560px) {
  .sx-famfoot-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
