/* Shared homepage and workbench footer. Content is rendered by site-footer.js. */
site-footer { display: block; width: 100%; }
.site-footer__root { padding: 46px 0 88px; border-top: 1px solid #354039; color: var(--ssm-color-paper); background: #0b1117; }
.site-footer__shell { width: min(var(--ssm-layout-max), calc(100% - 40px)); margin-inline: auto; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 44px; }
.site-footer__brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ssm-color-paper); font: 750 18px/1 var(--ssm-font-display); text-decoration: none; }
.site-footer__mark { display: grid; width: 19px; height: 19px; flex: 0 0 auto; grid-template-columns: repeat(3, 5px); gap: 2px; }
.site-footer__mark i { background: var(--ssm-color-accent); }
.site-footer__mark i:nth-child(2), .site-footer__mark i:nth-child(4), .site-footer__mark i:nth-child(6), .site-footer__mark i:nth-child(8) { opacity: .25; }
.site-footer__brand-block p { max-width: 300px; margin: 18px 0 0; color: #9faca5; font: 400 13px/1.55 var(--ssm-font-body); }
.site-footer__column strong { display: block; margin-bottom: 16px; color: #8f9d95; font: 700 10px/1 var(--ssm-font-mono); text-transform: uppercase; }
.site-footer__column a { display: block; margin: 10px 0; color: #dbe2de; font: 400 13px/1.55 var(--ssm-font-body); text-decoration: none; }
.site-footer__column a:hover { color: var(--ssm-color-accent); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 20px; border-top: 1px solid #354039; color: #7f8d85; font: 600 10px/1.4 var(--ssm-font-mono); }
body.is-logged-in site-footer[context="workbench"] { display: none; }

@media (max-width: 680px) {
  .site-footer__shell { width: min(100% - 28px, var(--ssm-layout-max)); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .site-footer__brand-block { grid-column: 1 / -1; }
  .site-footer__bottom { flex-direction: column; }
  site-footer[context="homepage"] .site-footer__root { padding-bottom: 120px; }
}
