:root .footer.band:not([data-colour="none"]) {
  margin: 0;
  padding-block: 0;
  border-radius: 0;
}

.footer-sheet {
  --footer-rule: var(--stroke-small) solid var(--border-secondary);
  display: grid;
  grid-template-columns: calc(var(--spacing-xtreme2) + var(--spacing-small)) repeat(2, minmax(0, 1fr)) calc(2 * var(--spacing-xtreme2));
  grid-template-rows: repeat(2, calc(var(--spacing-large) * 2));
  border-block: var(--footer-rule);
}

.footer-cell {
  position: relative;
  display: flex;
  min-width: 0;
  padding: var(--padding-large);
  border-left: var(--footer-rule);
}

.footer-cell.is-seal {
  grid-area: 1 / 1 / 3 / 2;
  justify-content: center;
  align-items: center;
  border-left: 0;
}

.footer-cell.is-pair {
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-medium);
  padding-inline: var(--padding-xlarge);
  transition: background-color var(--duration-hover) var(--ease-reveal);
}

.footer-cell.is-wide {
  grid-column: 2 / 4;
}

.footer-cell.is-pair:not(.is-wide) {
  border-top: var(--footer-rule);
}

.footer-cell.is-pair:hover {
  background: var(--background-transparent);
}

.footer-cell.is-pair > a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.footer-cell.is-colophon {
  grid-area: 1 / 4 / 3 / 5;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding-inline: var(--padding-xlarge);
}

.footer-seal {
  width: var(--control-large);
  height: auto;
}

.footer-item {
  font: var(--text-caption-1);
  letter-spacing: var(--text-caption-ac-tracking);
  text-transform: uppercase;
  color: var(--content-primary);
}

.footer-mark {
  font: var(--text-figure-small);
  letter-spacing: var(--text-figure-small-tracking);
  color: var(--content-tertiary);
}

.footer-top {
  padding: 0;
  border: 0;
  background: none;
  color: var(--content-primary);
  cursor: pointer;
}

.footer-end {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-small);
}

.footer-theme {
  display: grid;
  flex: none;
  place-items: center;
  width: var(--control-xsmall);
  height: var(--control-xsmall);
  padding: 0;
  border: 0;
  border-radius: var(--radius-max);
  background: var(--background-transparent);
  color: var(--content-primary);
  cursor: pointer;
  transition: background-color var(--duration-hover) var(--ease-reveal);
}

.footer-theme:hover {
  background: var(--background-transparent-hover);
}

.footer-theme-icon {
  grid-area: 1 / 1;
  width: var(--icon-small);
  height: var(--icon-small);
}

.footer-theme[aria-pressed="true"] [data-icon="moon"],
.footer-theme[aria-pressed="false"] [data-icon="sun"] {
  visibility: hidden;
}

@media (max-width: 768px) {
  .footer-sheet {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }

  .footer-cell {
    border-left: 0;
  }

  .footer-cell.is-seal,
  .footer-cell.is-wide,
  .footer-cell.is-colophon {
    grid-area: auto;
  }

  .footer-cell + .footer-cell {
    border-top: var(--footer-rule);
  }

  .footer-cell.is-colophon {
    flex-direction: row;
    align-items: center;
  }
}
