/* Shared footer identity. Tool headers and in-app navigation are intentionally untouched. */
footer.st-public-footer{position:relative!important;z-index:6;display:block!important;width:100%!important;max-width:none!important;box-sizing:border-box!important;margin:0!important;padding:0!important;border:0!important;border-top:1px solid var(--st-footer-line,#15151626)!important;border-radius:0!important;background:var(--st-footer-bg,#fff)!important;color:var(--st-footer-ink,#202022)!important;text-align:left!important;box-shadow:none!important;font-family:Inter,Arial,sans-serif!important;font-size:13px!important;line-height:1.6!important}
.st-public-footer .st-footer-layout{max-width:1440px;margin:0 auto;padding:28px 40px 70px;display:flex;align-items:flex-start;justify-content:space-between;gap:24px 40px}
.st-public-footer .st-footer-identity{display:flex;align-items:center;gap:14px;flex:none;direction:ltr;min-height:44px}
.st-public-footer a.st-footer-brand{margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;display:inline-flex;align-items:center;gap:9px;color:var(--st-footer-ink,#151516)!important;font:17px/1.3 Bungee,Arial,sans-serif!important;text-decoration:none!important;white-space:nowrap}
.st-public-footer .st-footer-brand img{width:30px!important;height:30px!important;object-fit:contain;margin:0!important;display:block}
.st-public-footer a.st-footer-x{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;flex:none;margin:0!important;padding:0!important;box-shadow:none!important;background:transparent;color:var(--st-footer-ink,#151516)!important;border:1px solid transparent;border-radius:10px;box-sizing:border-box;text-decoration:none!important;transition:background .15s ease,border-color .15s ease}
.st-public-footer .st-footer-x svg{display:block;width:34px!important;height:34px!important;fill:currentColor}
.st-public-footer .st-footer-x:hover{background:#edf9f0;border-color:#151516}
.st-public-footer a:focus-visible{outline:3px solid #7133c3!important;outline-offset:4px!important}
.st-public-footer .st-footer-content{flex:1;min-width:0;align-self:center;color:#47474c;font:13px/1.65 Inter,Arial,sans-serif!important}
.st-public-footer .st-footer-content :is(.simple-footer-inner,.foot-links,.footer-links,nav){position:static!important;display:flex!important;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:12px 20px!important;width:auto!important;max-width:none!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;transform:none!important}
.st-public-footer .st-footer-content :is(a,p,small,span,div){font-family:Inter,Arial,sans-serif!important;font-size:13px!important;line-height:1.65!important}
.st-public-footer .st-footer-content a{color:var(--st-footer-ink,#303034)!important;text-decoration:none!important;font-weight:500!important}
.st-public-footer .st-footer-content a:hover{color:#7133c3!important;text-decoration:underline!important}
.st-public-footer .st-footer-content p{margin:8px 0 0!important;color:var(--st-footer-muted,#595961)!important}
.st-public-footer .st-footer-content small{color:var(--st-footer-muted,#595961)!important}
@media(max-width:1100px){.st-public-footer .st-footer-layout{flex-direction:column;gap:18px}.st-public-footer .st-footer-content{align-self:stretch}}
@media(max-width:600px){.st-public-footer .st-footer-layout{padding:24px 20px 76px}.st-public-footer a.st-footer-brand{font-size:16px!important}.st-public-footer .st-footer-identity{gap:12px}.st-public-footer .st-footer-content :is(nav,.footer-links,.foot-links){gap:10px 16px!important}}
@media(prefers-reduced-motion:reduce){.st-public-footer .st-footer-x{transition:none}}

/* Keep footer navigation out of the application header's generic nav styling. */
html:root :is(#nav, footer.st-public-footer) .st-footer-content nav,
html:root :is(#nav, .control-software-guides) nav.control-software-links,
html:root :is(#nav, .control-software-guides) nav.control-software-links a {
  background:transparent!important;
  box-shadow:none!important;
}
html[data-control-theme="night"] footer.st-public-footer {
  --st-footer-bg:var(--ct-page,var(--st2-page,#0b0c0f));
  --st-footer-ink:var(--ct-text,var(--st2-ink,#fff));
  --st-footer-muted:#b5b5bc;
  --st-footer-line:rgba(255,255,255,.18);
}
html[data-control-theme="night"] .st-public-footer .st-footer-x:hover {
  background:#242424!important;border-color:#b5b5bc;
}
/* Application pages have fixed IRL/theme and language/help widgets at the bottom. */
html[data-control-theme] .st-public-footer .st-footer-layout{padding-bottom:112px}
@media(max-width:600px){html[data-control-theme] .st-public-footer .st-footer-layout{padding-bottom:120px}}

/* Color the regular links and give new features their own outlines. */
footer.st-public-footer {
  --footer-purple: #633194;
  --footer-teal: #086759;
  --footer-blue: #245bab;
  --footer-rose: #963764;
  --footer-amber: #865421;
  --footer-speakers-bg: #e1f7e9;
  --footer-cc-bg: #eee4fc;
  --footer-map-bg: #e2effe;
}
html[data-control-theme="night"] footer.st-public-footer {
  --footer-purple: #d9b7ff;
  --footer-teal: #91e8d3;
  --footer-blue: #a8ccff;
  --footer-rose: #ffa8d0;
  --footer-amber: #ffcc9a;
  --footer-speakers-bg: #18362e;
  --footer-cc-bg: #312345;
  --footer-map-bg: #23354c;
}
html:root footer.st-public-footer .st-footer-content nav a {
  color: var(--footer-link-color, var(--footer-purple)) !important;
}
.st-public-footer nav a:nth-child(4n+2) { --footer-link-color: var(--footer-teal); }
.st-public-footer nav a:nth-child(4n+3) { --footer-link-color: var(--footer-blue); }
.st-public-footer nav a:nth-child(4n+4) { --footer-link-color: var(--footer-rose); }
.st-public-footer nav a[href="/terms"], .st-public-footer nav a[href="/guides"] { --footer-link-color: var(--footer-amber); }
html:root footer.st-public-footer .st-footer-content nav a:is([href="/twitch-audience-map"], [href="/two-speaker-live-captions"], [href="/native-twitch-cc"]) {
  display: inline-flex !important;
  padding: 5px 9px !important;
  border: 1px solid currentColor !important;
  border-radius: 8px !important;
  background: var(--footer-feature-bg) !important;
  font-weight: 750 !important;
}
.st-public-footer nav a[href="/twitch-audience-map"] { --footer-feature-bg: var(--footer-map-bg); --footer-link-color: var(--footer-blue); }
.st-public-footer nav a[href="/two-speaker-live-captions"] { --footer-feature-bg: var(--footer-speakers-bg); --footer-link-color: var(--footer-teal); }
.st-public-footer nav a[href="/native-twitch-cc"] { --footer-feature-bg: var(--footer-cc-bg); --footer-link-color: var(--footer-purple); }
