/* The Studio canonical footer. Shared by every page on thestudio.io.
   One source of truth: edit here and the footer updates site-wide.
   "Mike's Cut" (Dave's call Oct 5): black, confident, minimal. */
footer {
  position: relative;
  padding: 56px 40px 36px;
  text-align: left;
  background: #0a0a0b;
  color: #e6edf3;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
footer .foot-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* Top row: brand only (hiring moved to bottom-right per Dave Oct 5) */
footer .foot-brand {
  order: 1;
  flex: 1 1 100%;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
  color: #e6edf3;
}
/* Hiring pill: same row as bottom bar, far right */
footer .hiring-min {
  order: 6;
  flex: 0 0 auto;
  position: static;
  font-size: 14px;
  font-weight: 700;
  color: #d29922;
  text-decoration: none;
  border: 1px solid #2a2a2e;
  border-radius: 999px;
  padding: 8px 18px;
  white-space: nowrap;
  margin: 16px 35px 0 0;
  height: fit-content;
  transition: border-color .2s;
}
footer .hiring-min:hover { border-color: #d29922; color: #d29922; }
footer .hiring-min .wave { display: inline-block; margin-right: 5px; }

/* Columns */
footer .col-grid {
  order: 3;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
footer .col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6e7681;
  margin: 0 0 14px;
  font-weight: 800;
}
footer .col h4 a { color: inherit; text-decoration: none; }
footer .col a {
  display: block;
  color: #a7a69e;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 10px;
}
footer .col a:hover { color: #e6edf3; }

/* Bottom bar: powered-by left, links middle, hiring pill far right, one row */
footer .powered-by {
  order: 4;
  flex: 0 0 auto;
  font-size: 13px;
  color: #6e7681;
  margin: 0 32px 0 0;
  border-top: 1px solid #1c1c1e;
  padding-top: 24px;
}
footer .powered-by a { color: #e6edf3; font-weight: 700; text-decoration: none; }
footer small {
  order: 5;
  flex: 1 1 auto;
  color: #6e7681;
  font-size: 13px;
  border-top: 1px solid #1c1c1e;
  padding-top: 24px;
  text-align: left;
}
footer small a { color: #8b949e; text-decoration: none; margin-left: 16px; }
footer small a:hover { color: #e6edf3; }

/* Pulsing Studio World dot */
@keyframes sw-pulse { 0%,100% { opacity: .4; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }
footer .sw-dot,
footer .sw-pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #8e8e93;
  margin-right: 8px;
  vertical-align: 1px;
  animation: sw-pulse 2s ease-in-out infinite;
}

/* Language switcher */
footer .lang-switch {
  position: absolute;
  right: 22px;
  bottom: 18px;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease;
}
footer .lang-switch:hover { transform: scale(1.15); }
footer .mx-flag { display: inline-block; margin-left: 8px; vertical-align: -1px; opacity: .8; }
footer .mx-flag svg { display: block; border-radius: 2px; }
footer a.mx-flag svg rect:nth-child(1) { fill: #006847; }
footer a.mx-flag svg rect:nth-child(2) { fill: #ffffff; }
footer a.mx-flag svg rect:nth-child(3) { fill: #ce1126; }

/* Legacy selectors kept harmless */
footer nav { display: none; }
footer .col-ico { display: none; }

@media (max-width: 640px) {
  footer { padding: 40px 24px 32px; }
  footer .col-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  footer .foot-bottom { flex-direction: column; align-items: flex-start; }
  footer small { line-height: 2.1; }
  footer small a { margin-left: 0; margin-right: 16px; }
  footer small .legal-flag { white-space: nowrap; }
}
@media (max-width: 520px) {
  footer .lang-switch { right: 14px; bottom: 14px; font-size: 21px; }
}

/* Provenance note some pages keep above the footer (data sources, dates). */
.colophon-note {
  text-align: center;
  color: #6e6e73;
  font-size: 13px;
  line-height: 1.6;
  max-width: 660px;
  margin: 0 auto;
  padding: 0 24px 10px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

/* Online now: avatar strip, bottom-right of footer above the columns (Dave's call Oct 5 2026). Site-wide. */
footer .foot-inner{position:relative}
footer .online-now{order:2;width:100%;display:flex;align-items:center;justify-content:flex-end;gap:18px;margin:0 0 28px}
footer .online-now .on-label{display:flex;align-items:center;gap:8px;margin:0;font-size:11px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase;color:#8e8e93;white-space:nowrap}
footer .online-now .on-label i{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.22)}
footer .online-now .on-avatars{display:flex;justify-content:flex-end}
footer .online-now .on-avatars a{position:relative;width:44px;height:44px;margin-left:-10px;border-radius:50%;border:2px solid #0a0a0b;overflow:hidden;flex-shrink:0;background:#2c2c2e;transition:transform .2s ease}
footer .online-now .on-avatars a:first-child{margin-left:0}
footer .online-now .on-avatars a img{width:114%;height:114%;margin:-7%;border-radius:50%;object-fit:cover;display:block}
footer .online-now .on-avatars a .gdot{position:absolute;left:2px;bottom:2px;width:12px;height:12px;border-radius:50%;background:#22c55e;border:2px solid #0a0a0b}
footer .online-now .on-avatars a:hover{transform:scale(1.2);z-index:10}
@media (max-width:640px){
  footer .online-now{justify-content:flex-start;flex-wrap:wrap;margin:0 0 24px}
}
