/* sx-brand.css — styles for the StrmrX brand layer (sx-brand.js).
   SX_BRAND_VERSION 1.1.0 (canonical: strmrx-core/web; vendor a copy).
   1.1.0: the family footer gained a small-print link row, so .sx-famfoot-inner
   is a two-band COLUMN and the old single flex row moved to .sx-famfoot-row.
   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);
}
/* Two stacked bands: the brand/blurb/buttons row, then the small print. The
   outer box keeps the width + padding (the hosted layout tag targets
   `.sx-famfoot > .sx-famfoot-inner` for its width knob, so that selector must
   keep meaning the same element it always did). */
.sx-famfoot-inner {
  max-width: var(--sx-page-max, 1100px); margin: 0 auto; padding: 26px 22px 30px;
  display: flex; flex-direction: column; gap: 16px;
}
.sx-famfoot-row { 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);
}
/* Small print: the utility links (privacy / terms / contact / help) every app
   was missing. Separated by a hairline dot drawn in CSS rather than typed into
   the markup, so removing a link never leaves an orphan separator behind. */
.sx-famfoot-small {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px;
  padding-top: 14px; border-top: 1px solid var(--sx-border, rgba(255,255,255,.07));
  font-size: 12.5px; line-height: 2;
}
.sx-famfoot-small a {
  color: var(--sx-muted, #9a93a8); text-decoration: none; position: relative;
  transition: color .15s ease;
}
.sx-famfoot-small a:hover { color: var(--sx-text, #eee); }
.sx-famfoot-small a + a::before {
  content: ""; position: absolute; left: -7.5px; top: 50%;
  width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%;
  background: currentColor; opacity: .4;
}

@media (max-width: 560px) {
  .sx-famfoot-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}
