/* Dashboard footer: thin, muted row of internal links + a copyright line.
   Sits inside .shell__content, below .shell__outlet, so it scrolls with the
   page content rather than pinning to the viewport (this is a private panel
   footer, not a fixed site chrome bar). */

.shell-footer {
  width: 100%;
  max-width: min(96%, 1800px);
  margin: var(--s-8) auto 0;
  padding: var(--s-4) 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-5);
}

.shell-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1) var(--s-5);
}

.shell-footer__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--text-faint);
  font-size: var(--fs-xs);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.shell-footer__link:hover {
  color: var(--text-muted);
}

.shell-footer__link .icon {
  flex-shrink: 0;
}

.shell-footer__meta {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--text-faint);
  font-size: var(--fs-xs);
  white-space: nowrap;
}

.shell-footer__meta .icon {
  margin-right: var(--s-1);
  vertical-align: -2px;
}

.shell-footer__sep {
  color: var(--border-strong);
}

/* Tablet and small laptop: match the shell's tighter content padding there. */
@media (min-width: 901px) and (max-width: 1100px) {
  .shell-footer {
    margin-top: var(--s-6);
  }
}

/* Phone/narrow drawer width: stack links above the meta line and let the
   link row wrap on its own rather than fighting for one line with the
   copyright text (the failure mode a static footer can hit at 390px). */
@media (max-width: 640px) {
  .shell-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-3);
  }

  .shell-footer__links {
    gap: var(--s-3) var(--s-4);
  }

  .shell-footer__meta {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shell-footer__link {
    transition: none;
  }
}
