/* The public site's header and footer on pages in their own design (mcp, verify, feedback, the community articles,
   the legal pages). tools/scripts/public_site.py writes the markup; the homepage and the menu pages carry the same
   menu in the homepage's own markup. Everything here is under .sc- so no page's stylesheet meets it, and every value
   falls back to the Averionics dark palette for the pages that do not load averionics-theme.css.
   Also the showreel grid on /showcase (.sc-shots). AXIS Launch taskgate T150, 2026-10-26. */

.sc-header, .sc-footer {
  font-family: var(--av-font-ui, system-ui, "Segoe UI", sans-serif);
  color: var(--av-fg-secondary, rgba(255, 255, 255, .72));
  background: var(--av-bg-canvas, #090B0F);
}
.sc-header { border-bottom: 1px solid var(--av-line-soft, rgba(255, 255, 255, .08)); }
.sc-footer { border-top: 1px solid var(--av-line-soft, rgba(255, 255, 255, .08)); margin-top: 48px; }

.sc-wrap {
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}
.sc-footer .sc-wrap { padding: 26px 20px 30px; display: block; }

.sc-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--av-fg-primary, #F2F5F8);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.sc-brand b { color: var(--av-accent-cyan, #18D2FF); font-weight: 700; }
.sc-mk {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--av-accent-cyan, #18D2FF), var(--av-accent-purple, #8B5CF6));
}

/* On a phone the menu scrolls sideways inside its own row rather than widening the page. */
.sc-nav {
  display: flex;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  font-size: 14px;
}
.sc-nav::-webkit-scrollbar { display: none; }
.sc-nav a, .sc-foot-nav a {
  color: var(--av-fg-secondary, rgba(255, 255, 255, .72));
  text-decoration: none;
  white-space: nowrap;
}
.sc-nav a:hover, .sc-foot-nav a:hover, .sc-nav a:focus-visible, .sc-foot-nav a:focus-visible {
  color: var(--av-fg-primary, #F2F5F8);
  text-decoration: underline;
}

.sc-actions { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.sc-btn {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--av-line-strong, rgba(255, 255, 255, .18));
  color: var(--av-fg-primary, #F2F5F8);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.sc-btn.sc-primary {
  background: var(--av-accent-cyan, #18D2FF);
  border-color: var(--av-accent-cyan, #18D2FF);
  color: #04131A;
}
.sc-btn:focus-visible, .sc-brand:focus-visible { outline: 2px solid var(--av-accent-cyan, #18D2FF); outline-offset: 2px; }

.sc-foot-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13.5px; }
.sc-legal {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--av-fg-tertiary, rgba(255, 255, 255, .55));
}
.sc-legal a { color: inherit; text-decoration: underline; }

/* /showcase: the meshes from the homepage's showreel, as still images. */
.sc-shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.sc-shot { margin: 0; text-align: center; }
.sc-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: var(--av-radius-lg, 14px);
  background: var(--av-bg-surface-1, #0E1219);
}
.sc-shot figcaption { margin-top: 8px; font-size: 13px; color: var(--av-fg-secondary, rgba(255, 255, 255, .72)); }

@media (max-width: 640px) {
  .sc-actions { width: 100%; }
  .sc-nav { order: 3; flex-basis: 100%; }
}
