.shell footer {
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.foot-row,
.foot-brand,
.foot-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}

.foot-brand {
  gap: 14px;
}

.brand--foot {
  gap: 9px;
}

.brand--foot .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 11px;
}

.brand--foot .brand-mark svg {
  width: 20px;
  height: 20px;
}

.brand--foot .brand-name {
  font-size: 16px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.foot-links a {
  font-size: 12.5px;
  color: var(--muted);
}

.foot-links a:hover {
  color: var(--accent-text);
}

.foot-theme {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foot-theme-label,
.copyright {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.foot-theme-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.copyright {
  opacity: 0.75;
}

/* The pill itself comes from `.lang-switch`; only the icon-sized buttons differ. */
.theme-switch button {
  display: flex;
  padding: 6px 9px;
}

/* Quieter than the language pill: a tinted track with an accent glyph, as on the Dailypedia landing. */
.theme-switch button:hover {
  color: var(--on-surf);
}

.theme-switch button[aria-pressed="true"] {
  background: color-mix(in oklab, var(--on-surf) 8%, transparent);
  color: var(--accent);
}

.theme-switch svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 640px) {
  .foot-row,
  .foot-brand,
  .foot-right {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .foot-brand {
    gap: 10px;
  }

  /* `justify-content` centres the row itself; `text-align` is still needed for a
     link that wraps onto a second line inside its own box. */
  .foot-links {
    justify-content: center;
    text-align: center;
    gap: 14px 18px;
  }
}
